[2026-10-02 05:45:01] local.INFO: MYSOFT: Starting token fetch {"integration_id":44,"environment":"live","username":"ugur@akildoluisler.com","token_endpoint":"https://edocumentapi.mysoft.com.tr/oauth/token"} 
[2026-10-02 05:45:01] local.ERROR: MYSOFT: Token request failed {"status":400,"response":"{\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","username_used":"ugur@akildoluisler.com","environment":"live"} 
[2026-10-02 05:45:01] local.ERROR: MYSOFT: Token acquisition error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 05:45:01] local.ERROR: MYSOFT: Invoice inbox error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 05:57:56] local.INFO: MYSOFT: Starting token fetch {"integration_id":44,"environment":"live","username":"ugur@akildoluisler.com","token_endpoint":"https://edocumentapi.mysoft.com.tr/oauth/token"} 
[2026-10-02 05:57:57] local.ERROR: MYSOFT: Token request failed {"status":400,"response":"{\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","username_used":"ugur@akildoluisler.com","environment":"live"} 
[2026-10-02 05:57:57] local.ERROR: MYSOFT: Token acquisition error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 05:57:57] local.ERROR: MYSOFT: Invoice inbox error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 08:55:03] local.INFO: MYSOFT: Starting token fetch {"integration_id":44,"environment":"live","username":"ugur@akildoluisler.com","token_endpoint":"https://edocumentapi.mysoft.com.tr/oauth/token"} 
[2026-10-02 08:55:04] local.ERROR: MYSOFT: Token request failed {"status":400,"response":"{\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","username_used":"ugur@akildoluisler.com","environment":"live"} 
[2026-10-02 08:55:04] local.ERROR: MYSOFT: Token acquisition error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 08:55:04] local.ERROR: MYSOFT: Invoice inbox error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 09:02:29] local.INFO: loadStockItems called {"accountId":12,"lineId":2819,"index":0} 
[2026-10-02 09:02:29] local.INFO: Fetching stock items {"accountId":12,"companyId":"1516"} 
[2026-10-02 09:02:29] local.INFO: Stock items fetched {"count":489} 
[2026-10-02 09:02:29] local.INFO: Attempting to fetch warehouses {"companyId":"1516","selectedPosServiceId":null} 
[2026-10-02 09:02:29] local.INFO: Warehouses fetched {"count":4,"companyId":"1516","warehouses":[{"id":10,"name":"BAR","code":"BAR"},{"id":16,"name":"HOUSEKEEPING","code":"HK"},{"id":9,"name":"MUTFAK","code":"MUTFAK"},{"id":7,"name":"YÖNETİM","code":"YONETIM"}]} 
[2026-10-02 09:02:29] local.INFO: Product mapping found and applied {"product_id":39400,"remote_stock_item_id":9745,"lineId":2819,"index":0} 
[2026-10-02 09:02:31] local.INFO: loadStockItems called {"accountId":12,"lineId":2820,"index":0} 
[2026-10-02 09:02:31] local.INFO: Product mapping found and applied {"product_id":39789,"remote_stock_item_id":10174,"lineId":2820,"index":0} 
[2026-10-02 09:03:29] local.INFO: Processing allocation for Posmanager {"allocation_id":1777,"create_new_item":false,"custom_item_name_from_state":null,"remote_stock_item_id":13112} 
[2026-10-02 09:03:29] local.INFO: Processing allocation for Posmanager {"allocation_id":1778,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":10174} 
[2026-10-02 09:05:51] local.ERROR: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null (Connection: mysql, SQL: insert into `invoice_lines` (`invoice_id`, `product_id`, `name`, `quantity`, `unit`, `unit_price`, `discount_rate`, `discount_amount`, `subtotal`, `tax_rate`, `tax_amount`, `total_price`, `current_team_id`, `user_id`, `updated_at`, `created_at`) values (2534, 40183, ?, 1, C62, 100, 0, 0, 100, 20, 20, 120, 35, 51, 2026-10-02 09:05:51, 2026-10-02 09:05:51)) {"userId":51,"exception":"[object] (Illuminate\\Database\\QueryException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null (Connection: mysql, SQL: insert into `invoice_lines` (`invoice_id`, `product_id`, `name`, `quantity`, `unit`, `unit_price`, `discount_rate`, `discount_amount`, `subtotal`, `tax_rate`, `tax_amount`, `total_price`, `current_team_id`, `user_id`, `updated_at`, `created_at`) values (2534, 40183, ?, 1, C62, 100, 0, 0, 100, 20, 20, 120, 35, 51, 2026-10-02 09:05:51, 2026-10-02 09:05:51)) at /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/Connection.php:829)
[stacktrace]
#0 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback()
#1 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run()
#2 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert()
#3 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId()
#4 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId()
#5 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call()
#6 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId()
#7 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert()
#8 /var/www/apper/finance.apper/app/Actions/StoreInvoiceAction.php(224): Illuminate\\Database\\Eloquent\\Model->save()
#9 /var/www/apper/finance.apper/app/Actions/StoreInvoiceAction.php(103): App\\Actions\\StoreInvoiceAction->storeInvoiceLines()
#10 /var/www/apper/finance.apper/app/Http/Controllers/InvoiceController.php(244): App\\Actions\\StoreInvoiceAction->execute()
#11 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\InvoiceController->store_invoice()
#12 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction()
#13 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch()
#14 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#15 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#16 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
#17 /var/www/apper/finance.apper/app/Http/Middleware/CheckUserAccess.php(32): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#18 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\CheckUserAccess->handle()
#19 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Auth/Middleware/EnsureEmailIsVerified.php(41): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#20 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\EnsureEmailIsVerified->handle()
#21 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#22 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()
#23 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Session/Middleware/AuthenticateSession.php(60): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#24 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\AuthenticateSession->handle()
#25 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#26 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle()
#27 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#28 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle()
#29 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#30 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle()
#31 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#32 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest()
#33 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle()
#34 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#35 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle()
#36 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#37 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle()
#38 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#39 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then()
#40 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack()
#41 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute()
#42 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute()
#43 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch()
#44 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
#45 /var/www/apper/finance.apper/vendor/livewire/livewire/src/Features/SupportDisablingBackButtonCache/DisableBackButtonCacheMiddleware.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#46 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Livewire\\Features\\SupportDisablingBackButtonCache\\DisableBackButtonCacheMiddleware->handle()
#47 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#48 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#49 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle()
#50 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#51 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#52 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle()
#53 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#54 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle()
#55 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#56 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#57 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#58 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle()
#59 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#60 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle()
#61 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#62 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then()
#63 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#64 /var/www/apper/finance.apper/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle()
#65 {main}

[previous exception] [object] (PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null at /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php:45)
[stacktrace]
#0 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(45): PDOStatement->execute()
#1 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/Connection.php(816): Illuminate\\Database\\MySqlConnection->Illuminate\\Database\\{closure}()
#2 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/Connection.php(783): Illuminate\\Database\\Connection->runQueryCallback()
#3 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php(34): Illuminate\\Database\\Connection->run()
#4 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/Query/Processors/MySqlProcessor.php(35): Illuminate\\Database\\MySqlConnection->insert()
#5 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3549): Illuminate\\Database\\Query\\Processors\\MySqlProcessor->processInsertGetId()
#6 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1982): Illuminate\\Database\\Query\\Builder->insertGetId()
#7 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1334): Illuminate\\Database\\Eloquent\\Builder->__call()
#8 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1299): Illuminate\\Database\\Eloquent\\Model->insertAndSetId()
#9 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1138): Illuminate\\Database\\Eloquent\\Model->performInsert()
#10 /var/www/apper/finance.apper/app/Actions/StoreInvoiceAction.php(224): Illuminate\\Database\\Eloquent\\Model->save()
#11 /var/www/apper/finance.apper/app/Actions/StoreInvoiceAction.php(103): App\\Actions\\StoreInvoiceAction->storeInvoiceLines()
#12 /var/www/apper/finance.apper/app/Http/Controllers/InvoiceController.php(244): App\\Actions\\StoreInvoiceAction->execute()
#13 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\InvoiceController->store_invoice()
#14 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\\Routing\\Controller->callAction()
#15 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\\Routing\\ControllerDispatcher->dispatch()
#16 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\\Routing\\Route->runController()
#17 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\\Routing\\Route->run()
#18 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
#19 /var/www/apper/finance.apper/app/Http/Middleware/CheckUserAccess.php(32): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#20 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): App\\Http\\Middleware\\CheckUserAccess->handle()
#21 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Auth/Middleware/EnsureEmailIsVerified.php(41): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#22 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\EnsureEmailIsVerified->handle()
#23 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#24 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()
#25 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Session/Middleware/AuthenticateSession.php(60): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#26 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\AuthenticateSession->handle()
#27 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(57): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#28 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Auth\\Middleware\\Authenticate->handle()
#29 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#30 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle()
#31 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#32 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle()
#33 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#34 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest()
#35 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle()
#36 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#37 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle()
#38 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#39 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle()
#40 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#41 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\\Pipeline\\Pipeline->then()
#42 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\\Routing\\Router->runRouteWithinStack()
#43 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\\Routing\\Router->runRoute()
#44 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Routing/Router.php(737): Illuminate\\Routing\\Router->dispatchToRoute()
#45 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\\Routing\\Router->dispatch()
#46 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
#47 /var/www/apper/finance.apper/vendor/livewire/livewire/src/Features/SupportDisablingBackButtonCache/DisableBackButtonCacheMiddleware.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#48 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Livewire\\Features\\SupportDisablingBackButtonCache\\DisableBackButtonCacheMiddleware->handle()
#49 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#50 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#51 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle()
#52 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#53 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#54 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle()
#55 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#56 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle()
#57 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#58 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#59 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#60 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle()
#61 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#62 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle()
#63 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#64 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then()
#65 /var/www/apper/finance.apper/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#66 /var/www/apper/finance.apper/public/index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle()
#67 {main}
"} 
[2026-10-02 09:09:54] local.INFO: Invoice update function called {"method":"PUT","url":"https://finance.apper.com.tr/invoices/update","all_input":{"_token":"i6p6iRRniW2n8TfCF7ZVOhg4A19Edvxm7uD62GWb","_method":"PUT","invoice_id":"2534","company_id":"1420","company_name":"METRO GROSMARKET","title":"Metro GROSMARKET BAKIRKÖY ALIŞVERİŞ HİZ.TİC.LTD.ŞTİ","line_1":"15 temmuz mah. Koçman cad.","line_2":"52/11 güneşli","district":"BaĞcılar","city":"İSTANBUL","country":"Türkiye","zip":"34340","tax_office":"Büyük mukellefler","vat_number":"6200031354","email":null,"phone":"0212 478 70 00","date":"2026-10-01","due_date":"2026-10-01","number":"7RX2026000169156","type":"purchase_invoice","currency":"TRL","rows":[{"product_name":"BALIK PALAMUT","product_id":"40182","quantity":"10","unit":"C62","unit_price":"110","tax_rate":"1","discount_rate":"0","discount_amount":"0","withholding_ratio":"0"}],"withholding_type":"YOK","ex_rate":"1","rounding":"0","total_sub":"1100","total_discount":"0","total_vat":"11","total_withholding":"0","total_amount":"1111","ex_sub":"1100","ex_discount":"0","ex_vat":"11","ex_withholding":"0","ex_amount":"1111","category_id":"income"},"invoice_id":"2534","user_id":51,"team_id":35} 
[2026-10-02 09:09:54] local.INFO: Invoice found, proceeding with update {"invoice_id":2534,"invoice_number":"7RX2026000169156","company_id":1420} 
[2026-10-02 09:09:54] local.INFO: Saving invoice with updated data {"date":"2026-10-01","number":"7RX2026000169156","type":"purchase_invoice","total_amount":"1111"} 
[2026-10-02 09:09:54] local.INFO: Invoice saved successfully {"invoice_id":2534} 
[2026-10-02 09:09:54] local.INFO: Updating existing customer address {"address_id":344,"company_id":1420} 
[2026-10-02 09:09:54] local.INFO: Customer address updated successfully  
[2026-10-02 09:09:54] local.INFO: Processing invoice lines {"rows_count":1,"invoice_id":2534} 
[2026-10-02 09:09:54] local.INFO: Deleted existing invoice lines {"deleted_count":1} 
[2026-10-02 09:09:54] local.INFO: Created invoice line {"line_index":0,"line_id":2822,"product_name":"BALIK PALAMUT","quantity":10.0,"unit_price":110.0,"raw_quantity":"10","raw_unit_price":"110"} 
[2026-10-02 09:09:54] local.INFO: All invoice lines processed successfully {"total_lines_created":1,"line_ids":[2822]} 
[2026-10-02 09:09:54] local.INFO: Recording activity for invoice update {"invoice_id":2534,"activity_message":"Satınalma güncellendi: #METRO GROSMARKET","company_id":1420} 
[2026-10-02 09:09:54] local.INFO: Invoice update completed successfully {"invoice_id":2534,"redirect_route":"invoices.show"} 
[2026-10-02 09:10:06] local.INFO: loadStockItems called {"accountId":12,"lineId":2822,"index":0} 
[2026-10-02 09:10:06] local.INFO: Fetching stock items {"accountId":12,"companyId":"1516"} 
[2026-10-02 09:10:07] local.INFO: Stock items fetched {"count":489} 
[2026-10-02 09:10:07] local.INFO: Attempting to fetch warehouses {"companyId":"1516","selectedPosServiceId":null} 
[2026-10-02 09:10:07] local.INFO: Warehouses fetched {"count":4,"companyId":"1516","warehouses":[{"id":10,"name":"BAR","code":"BAR"},{"id":16,"name":"HOUSEKEEPING","code":"HK"},{"id":9,"name":"MUTFAK","code":"MUTFAK"},{"id":7,"name":"YÖNETİM","code":"YONETIM"}]} 
[2026-10-02 09:10:07] local.INFO: Suggestion set (no mapping) {"suggestedId":14306,"productName":"BALIK PALAMUT","similarity":100.0,"matchedName":"BALIK PALAMUT"} 
[2026-10-02 09:10:19] local.INFO: Processing allocation for Posmanager {"allocation_id":1779,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":14306} 
[2026-10-02 09:14:50] local.INFO: Invoice update function called {"method":"PUT","url":"https://finance.apper.com.tr/invoices/update","all_input":{"_token":"i6p6iRRniW2n8TfCF7ZVOhg4A19Edvxm7uD62GWb","_method":"PUT","invoice_id":"2535","company_id":"1465","company_name":"TCHİBO KAHVE MAM.DAĞ.VE PAZA.TİC.LTD.ŞTİ","title":"TCHİBO KAHVE MAM.DAĞ.VE PAZA.TİC.LTD.ŞTİ","line_1":"BARBAROS MAH.LALE SOK.NO2-7","line_2":null,"district":"ATAŞEHİR","city":"ISTANBUL","country":"TURKIYE","zip":"34746","tax_office":"ANADOLU KURUMLAR V/D","vat_number":"8330424403","email":"info@tchibo.com.tr","phone":"0216 571 18 00","date":"2026-10-01","due_date":"2026-10-01","number":"TEO2026000005581","type":"purchase_invoice","currency":"TRL","rows":[{"product_name":"KAHVE ÇEKİRDEK  SİCİLİA","product_id":"39496","quantity":"2","unit":"KGM","unit_price":"2261.75","tax_rate":"10","discount_rate":"0","discount_amount":"0","withholding_ratio":"0"}],"withholding_type":"YOK","ex_rate":"1","rounding":"0","total_sub":"4523.5","total_discount":"0","total_vat":"452.35","total_withholding":"0","total_amount":"4975.85","ex_sub":"4523.5","ex_discount":"0","ex_vat":"452.35","ex_withholding":"0","ex_amount":"4975.85","category_id":"income"},"invoice_id":"2535","user_id":51,"team_id":35} 
[2026-10-02 09:14:50] local.INFO: Invoice found, proceeding with update {"invoice_id":2535,"invoice_number":"TEO2026000005581","company_id":1465} 
[2026-10-02 09:14:50] local.INFO: Saving invoice with updated data {"date":"2026-10-01","number":"TEO2026000005581","type":"purchase_invoice","total_amount":"4975.85"} 
[2026-10-02 09:14:50] local.INFO: Invoice saved successfully {"invoice_id":2535} 
[2026-10-02 09:14:50] local.INFO: Updating existing customer address {"address_id":368,"company_id":1465} 
[2026-10-02 09:14:50] local.INFO: Customer address updated successfully  
[2026-10-02 09:14:50] local.INFO: Processing invoice lines {"rows_count":1,"invoice_id":2535} 
[2026-10-02 09:14:50] local.INFO: Deleted existing invoice lines {"deleted_count":1} 
[2026-10-02 09:14:50] local.INFO: Created invoice line {"line_index":0,"line_id":2824,"product_name":"KAHVE ÇEKİRDEK  SİCİLİA","quantity":2.0,"unit_price":2261.75,"raw_quantity":"2","raw_unit_price":"2261.75"} 
[2026-10-02 09:14:50] local.INFO: All invoice lines processed successfully {"total_lines_created":1,"line_ids":[2824]} 
[2026-10-02 09:14:50] local.INFO: Recording activity for invoice update {"invoice_id":2535,"activity_message":"Satınalma güncellendi: #TCHİBO KAHVE MAM.DAĞ.VE PAZA.TİC.LTD.ŞTİ","company_id":1465} 
[2026-10-02 09:14:50] local.INFO: Invoice update completed successfully {"invoice_id":2535,"redirect_route":"invoices.show"} 
[2026-10-02 09:14:59] local.INFO: loadStockItems called {"accountId":12,"lineId":2824,"index":0} 
[2026-10-02 09:14:59] local.INFO: Fetching stock items {"accountId":12,"companyId":"1516"} 
[2026-10-02 09:14:59] local.INFO: Stock items fetched {"count":489} 
[2026-10-02 09:14:59] local.INFO: Attempting to fetch warehouses {"companyId":"1516","selectedPosServiceId":null} 
[2026-10-02 09:14:59] local.INFO: Warehouses fetched {"count":4,"companyId":"1516","warehouses":[{"id":10,"name":"BAR","code":"BAR"},{"id":16,"name":"HOUSEKEEPING","code":"HK"},{"id":9,"name":"MUTFAK","code":"MUTFAK"},{"id":7,"name":"YÖNETİM","code":"YONETIM"}]} 
[2026-10-02 09:14:59] local.INFO: Product mapping found and applied {"product_id":39496,"remote_stock_item_id":10287,"lineId":2824,"index":0} 
[2026-10-02 09:15:03] local.INFO: Processing allocation for Posmanager {"allocation_id":1780,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":10287} 
[2026-10-02 09:18:52] local.INFO: loadStockItems called {"accountId":12,"lineId":2825,"index":0} 
[2026-10-02 09:18:52] local.INFO: Fetching stock items {"accountId":12,"companyId":"1516"} 
[2026-10-02 09:18:52] local.INFO: Stock items fetched {"count":489} 
[2026-10-02 09:18:52] local.INFO: Attempting to fetch warehouses {"companyId":"1516","selectedPosServiceId":null} 
[2026-10-02 09:18:52] local.INFO: Warehouses fetched {"count":4,"companyId":"1516","warehouses":[{"id":10,"name":"BAR","code":"BAR"},{"id":16,"name":"HOUSEKEEPING","code":"HK"},{"id":9,"name":"MUTFAK","code":"MUTFAK"},{"id":7,"name":"YÖNETİM","code":"YONETIM"}]} 
[2026-10-02 09:18:52] local.INFO: Product mapping found and applied {"product_id":40086,"remote_stock_item_id":14131,"lineId":2825,"index":0} 
[2026-10-02 09:18:57] local.INFO: loadStockItems called {"accountId":12,"lineId":2826,"index":0} 
[2026-10-02 09:18:57] local.INFO: Product mapping found and applied {"product_id":39635,"remote_stock_item_id":10286,"lineId":2826,"index":0} 
[2026-10-02 09:19:06] local.INFO: Processing allocation for Posmanager {"allocation_id":1781,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":14131} 
[2026-10-02 09:19:06] local.INFO: Processing allocation for Posmanager {"allocation_id":1782,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":10286} 
[2026-10-02 09:23:48] local.INFO: loadStockItems called {"accountId":12,"lineId":2827,"index":0} 
[2026-10-02 09:23:48] local.INFO: Fetching stock items {"accountId":12,"companyId":"1516"} 
[2026-10-02 09:23:48] local.INFO: Stock items fetched {"count":489} 
[2026-10-02 09:23:48] local.INFO: Attempting to fetch warehouses {"companyId":"1516","selectedPosServiceId":null} 
[2026-10-02 09:23:48] local.INFO: Warehouses fetched {"count":4,"companyId":"1516","warehouses":[{"id":10,"name":"BAR","code":"BAR"},{"id":16,"name":"HOUSEKEEPING","code":"HK"},{"id":9,"name":"MUTFAK","code":"MUTFAK"},{"id":7,"name":"YÖNETİM","code":"YONETIM"}]} 
[2026-10-02 09:23:48] local.INFO: Product mapping found and applied {"product_id":39644,"remote_stock_item_id":13208,"lineId":2827,"index":0} 
[2026-10-02 09:24:23] local.INFO: Processing allocation for Posmanager {"allocation_id":1783,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":13208} 
[2026-10-02 09:25:16] local.INFO: MYSOFT: Starting token fetch {"integration_id":44,"environment":"live","username":"ugur@akildoluisler.com","token_endpoint":"https://edocumentapi.mysoft.com.tr/oauth/token"} 
[2026-10-02 09:25:16] local.ERROR: MYSOFT: Token request failed {"status":400,"response":"{\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","username_used":"ugur@akildoluisler.com","environment":"live"} 
[2026-10-02 09:25:16] local.ERROR: MYSOFT: Token acquisition error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 09:25:16] local.ERROR: MYSOFT: Invoice inbox error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 09:26:20] local.INFO: MYSOFT: Starting token fetch {"integration_id":44,"environment":"live","username":"ugur@akildoluisler.com","token_endpoint":"https://edocumentapi.mysoft.com.tr/oauth/token"} 
[2026-10-02 09:26:21] local.ERROR: MYSOFT: Token request failed {"status":400,"response":"{\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","username_used":"ugur@akildoluisler.com","environment":"live"} 
[2026-10-02 09:26:21] local.ERROR: MYSOFT: Token acquisition error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 09:26:21] local.ERROR: MYSOFT: Invoice inbox error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 09:29:30] local.INFO: MYSOFT: Starting token fetch {"integration_id":44,"environment":"live","username":"ugur@akildoluisler.com","token_endpoint":"https://edocumentapi.mysoft.com.tr/oauth/token"} 
[2026-10-02 09:29:31] local.ERROR: MYSOFT: Token request failed {"status":400,"response":"{\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","username_used":"ugur@akildoluisler.com","environment":"live"} 
[2026-10-02 09:29:31] local.ERROR: MYSOFT: Token acquisition error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 09:29:31] local.ERROR: MYSOFT: Invoice inbox error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 09:30:24] local.INFO: MYSOFT: Starting token fetch {"integration_id":44,"environment":"live","username":"ugur@akildoluisler.com","token_endpoint":"https://edocumentapi.mysoft.com.tr/oauth/token"} 
[2026-10-02 09:30:24] local.ERROR: MYSOFT: Token request failed {"status":400,"response":"{\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","username_used":"ugur@akildoluisler.com","environment":"live"} 
[2026-10-02 09:30:24] local.ERROR: MYSOFT: Token acquisition error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 09:30:24] local.ERROR: MYSOFT: Invoice inbox error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 10:12:49] local.INFO: MYSOFT: Starting token fetch {"integration_id":44,"environment":"live","username":"ugur@akildoluisler.com","token_endpoint":"https://edocumentapi.mysoft.com.tr/oauth/token"} 
[2026-10-02 10:12:49] local.ERROR: MYSOFT: Token request failed {"status":400,"response":"{\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","username_used":"ugur@akildoluisler.com","environment":"live"} 
[2026-10-02 10:12:49] local.ERROR: MYSOFT: Token acquisition error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 10:12:49] local.ERROR: MYSOFT: Invoice inbox error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 10:17:40] local.INFO: loadStockItems called {"accountId":12,"lineId":2828,"index":0} 
[2026-10-02 10:17:40] local.INFO: Fetching stock items {"accountId":12,"companyId":"1516"} 
[2026-10-02 10:17:40] local.INFO: Stock items fetched {"count":489} 
[2026-10-02 10:17:40] local.INFO: Attempting to fetch warehouses {"companyId":"1516","selectedPosServiceId":null} 
[2026-10-02 10:17:40] local.INFO: Warehouses fetched {"count":4,"companyId":"1516","warehouses":[{"id":10,"name":"BAR","code":"BAR"},{"id":16,"name":"HOUSEKEEPING","code":"HK"},{"id":9,"name":"MUTFAK","code":"MUTFAK"},{"id":7,"name":"YÖNETİM","code":"YONETIM"}]} 
[2026-10-02 10:17:40] local.INFO: Product mapping found and applied {"product_id":39455,"remote_stock_item_id":10221,"lineId":2828,"index":0} 
[2026-10-02 10:17:43] local.INFO: loadStockItems called {"accountId":12,"lineId":2829,"index":0} 
[2026-10-02 10:17:43] local.INFO: Product mapping found and applied {"product_id":39408,"remote_stock_item_id":9754,"lineId":2829,"index":0} 
[2026-10-02 10:17:45] local.INFO: loadStockItems called {"accountId":12,"lineId":2830,"index":0} 
[2026-10-02 10:17:45] local.INFO: Product mapping found and applied {"product_id":39382,"remote_stock_item_id":12938,"lineId":2830,"index":0} 
[2026-10-02 10:17:48] local.INFO: loadStockItems called {"accountId":12,"lineId":2831,"index":0} 
[2026-10-02 10:17:48] local.INFO: Product mapping found and applied {"product_id":39360,"remote_stock_item_id":10175,"lineId":2831,"index":0} 
[2026-10-02 10:17:50] local.INFO: loadStockItems called {"accountId":12,"lineId":2832,"index":0} 
[2026-10-02 10:17:50] local.INFO: Product mapping found and applied {"product_id":39470,"remote_stock_item_id":10207,"lineId":2832,"index":0} 
[2026-10-02 10:17:53] local.INFO: loadStockItems called {"accountId":12,"lineId":2833,"index":0} 
[2026-10-02 10:17:53] local.INFO: Product mapping found and applied {"product_id":39363,"remote_stock_item_id":9748,"lineId":2833,"index":0} 
[2026-10-02 10:17:55] local.INFO: loadStockItems called {"accountId":12,"lineId":2834,"index":0} 
[2026-10-02 10:17:55] local.INFO: Product mapping found and applied {"product_id":39488,"remote_stock_item_id":10279,"lineId":2834,"index":0} 
[2026-10-02 10:19:06] local.INFO: loadStockItems called {"accountId":12,"lineId":2835,"index":0} 
[2026-10-02 10:19:06] local.INFO: Product mapping found and applied {"product_id":39367,"remote_stock_item_id":10246,"lineId":2835,"index":0} 
[2026-10-02 10:19:09] local.INFO: loadStockItems called {"accountId":12,"lineId":2836,"index":0} 
[2026-10-02 10:19:09] local.INFO: Product mapping found and applied {"product_id":39474,"remote_stock_item_id":14292,"lineId":2836,"index":0} 
[2026-10-02 10:19:13] local.INFO: loadStockItems called {"accountId":12,"lineId":2837,"index":0} 
[2026-10-02 10:19:13] local.INFO: Product mapping found and applied {"product_id":39432,"remote_stock_item_id":10191,"lineId":2837,"index":0} 
[2026-10-02 10:19:16] local.INFO: loadStockItems called {"accountId":12,"lineId":2838,"index":0} 
[2026-10-02 10:19:16] local.INFO: Product mapping found and applied {"product_id":39369,"remote_stock_item_id":9761,"lineId":2838,"index":0} 
[2026-10-02 10:19:18] local.INFO: loadStockItems called {"accountId":12,"lineId":2839,"index":0} 
[2026-10-02 10:19:18] local.INFO: Product mapping found and applied {"product_id":39456,"remote_stock_item_id":10222,"lineId":2839,"index":0} 
[2026-10-02 10:19:21] local.INFO: loadStockItems called {"accountId":12,"lineId":2840,"index":0} 
[2026-10-02 10:19:21] local.INFO: Product mapping found and applied {"product_id":39551,"remote_stock_item_id":10898,"lineId":2840,"index":0} 
[2026-10-02 10:19:24] local.INFO: loadStockItems called {"accountId":12,"lineId":2841,"index":0} 
[2026-10-02 10:19:24] local.INFO: Product mapping found and applied {"product_id":39646,"remote_stock_item_id":13214,"lineId":2841,"index":0} 
[2026-10-02 10:19:26] local.INFO: loadStockItems called {"accountId":12,"lineId":2842,"index":0} 
[2026-10-02 10:19:26] local.INFO: Product mapping found and applied {"product_id":39370,"remote_stock_item_id":9759,"lineId":2842,"index":0} 
[2026-10-02 10:19:29] local.INFO: loadStockItems called {"accountId":12,"lineId":2843,"index":0} 
[2026-10-02 10:19:29] local.INFO: Product mapping found and applied {"product_id":39600,"remote_stock_item_id":12695,"lineId":2843,"index":0} 
[2026-10-02 10:19:39] local.INFO: loadStockItems called {"accountId":12,"lineId":2844,"index":0} 
[2026-10-02 10:19:39] local.INFO: Product mapping found and applied {"product_id":39419,"remote_stock_item_id":9785,"lineId":2844,"index":0} 
[2026-10-02 10:19:42] local.INFO: loadStockItems called {"accountId":12,"lineId":2845,"index":0} 
[2026-10-02 10:19:42] local.INFO: Product mapping found and applied {"product_id":39791,"remote_stock_item_id":10188,"lineId":2845,"index":0} 
[2026-10-02 10:19:44] local.INFO: loadStockItems called {"accountId":12,"lineId":2846,"index":0} 
[2026-10-02 10:19:44] local.INFO: Product mapping found and applied {"product_id":39376,"remote_stock_item_id":9740,"lineId":2846,"index":0} 
[2026-10-02 10:19:48] local.INFO: loadStockItems called {"accountId":12,"lineId":2847,"index":0} 
[2026-10-02 10:19:48] local.INFO: Product mapping found and applied {"product_id":39377,"remote_stock_item_id":10265,"lineId":2847,"index":0} 
[2026-10-02 10:19:51] local.INFO: loadStockItems called {"accountId":12,"lineId":2848,"index":0} 
[2026-10-02 10:19:51] local.INFO: Product mapping found and applied {"product_id":39368,"remote_stock_item_id":10189,"lineId":2848,"index":0} 
[2026-10-02 10:19:54] local.INFO: loadStockItems called {"accountId":12,"lineId":2849,"index":0} 
[2026-10-02 10:19:54] local.INFO: Product mapping found and applied {"product_id":39687,"remote_stock_item_id":13298,"lineId":2849,"index":0} 
[2026-10-02 10:19:57] local.INFO: loadStockItems called {"accountId":12,"lineId":2850,"index":0} 
[2026-10-02 10:19:57] local.INFO: Product mapping found and applied {"product_id":39380,"remote_stock_item_id":9781,"lineId":2850,"index":0} 
[2026-10-02 10:20:00] local.INFO: loadStockItems called {"accountId":12,"lineId":2851,"index":0} 
[2026-10-02 10:20:00] local.INFO: Suggestion set (no mapping) {"suggestedId":10227,"productName":"SİRKE BEYAZ","similarity":69.56521739130434,"matchedName":"EKMEK BEYAZ"} 
[2026-10-02 10:20:08] local.INFO: loadStockItems called {"accountId":12,"lineId":2852,"index":0} 
[2026-10-02 10:20:08] local.INFO: Product mapping found and applied {"product_id":39593,"remote_stock_item_id":12651,"lineId":2852,"index":0} 
[2026-10-02 10:20:11] local.INFO: loadStockItems called {"accountId":12,"lineId":2853,"index":0} 
[2026-10-02 10:20:11] local.INFO: Product mapping found and applied {"product_id":39582,"remote_stock_item_id":12567,"lineId":2853,"index":0} 
[2026-10-02 10:20:15] local.INFO: loadStockItems called {"accountId":12,"lineId":2854,"index":0} 
[2026-10-02 10:20:15] local.INFO: Product mapping found and applied {"product_id":39518,"remote_stock_item_id":10378,"lineId":2854,"index":0} 
[2026-10-02 10:20:18] local.INFO: loadStockItems called {"accountId":12,"lineId":2855,"index":0} 
[2026-10-02 10:20:18] local.INFO: Suggestion set (no mapping) {"suggestedId":13650,"productName":"YAĞLI PİŞİRME KAĞIDI","similarity":68.29268292682927,"matchedName":"PIŞIRME KAĞIDI"} 
[2026-10-02 10:20:28] local.INFO: loadStockItems called {"accountId":12,"lineId":2856,"index":0} 
[2026-10-02 10:20:28] local.INFO: Product mapping found and applied {"product_id":39585,"remote_stock_item_id":12574,"lineId":2856,"index":0} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1784,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":10221} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1785,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":9754} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1786,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":12938} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1787,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":10175} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1788,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":10207} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1789,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":9748} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1790,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":10279} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1791,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":10246} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1792,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":14292} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1793,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":10191} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1794,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":9761} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1795,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":10222} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1796,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":10898} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1797,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":13214} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1798,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":9759} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1799,"create_new_item":true,"custom_item_name_from_state":"Turp Siyah","remote_stock_item_id":null} 
[2026-10-02 10:20:34] local.INFO: Creating new stock item {"allocation_id":1799,"product_id":39600,"product_name":"Turp Siyah","custom_name_from_livewire":"Turp Siyah","final_item_name":"Turp Siyah","is_custom_name_different":false,"company_id":"1516"} 
[2026-10-02 10:20:34] local.INFO: Yeni stock item oluşturuldu {"stock_item_id":14309,"company_id":"1516","product_name":"Turp Siyah","original_uom":"KGM","converted_uom":"kilogram"} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1800,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":9785} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1801,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":10188} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1802,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":9740} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1803,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":10265} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1804,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":10189} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1805,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":13298} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1806,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":9781} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1807,"create_new_item":true,"custom_item_name_from_state":"SİRKE BEYAZ","remote_stock_item_id":null} 
[2026-10-02 10:20:34] local.INFO: Creating new stock item {"allocation_id":1807,"product_id":40185,"product_name":"SİRKE BEYAZ","custom_name_from_livewire":"SİRKE BEYAZ","final_item_name":"SİRKE BEYAZ","is_custom_name_different":false,"company_id":"1516"} 
[2026-10-02 10:20:34] local.INFO: Yeni stock item oluşturuldu {"stock_item_id":14310,"company_id":"1516","product_name":"SİRKE BEYAZ","original_uom":"LTR","converted_uom":"liter"} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1808,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":12651} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1809,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":12567} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1810,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":10378} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1811,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":13650} 
[2026-10-02 10:20:34] local.INFO: Processing allocation for Posmanager {"allocation_id":1812,"create_new_item":false,"custom_item_name_from_state":"","remote_stock_item_id":12574} 
[2026-10-02 10:20:34] local.INFO: Refreshing stock items for account {"accountId":12} 
[2026-10-02 10:20:34] local.INFO: Refreshing stock items for account {"accountId":12} 
[2026-10-02 12:09:30] local.INFO: MYSOFT: Starting token fetch {"integration_id":44,"environment":"live","username":"ugur@akildoluisler.com","token_endpoint":"https://edocumentapi.mysoft.com.tr/oauth/token"} 
[2026-10-02 12:09:30] local.ERROR: MYSOFT: Token request failed {"status":400,"response":"{\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","username_used":"ugur@akildoluisler.com","environment":"live"} 
[2026-10-02 12:09:30] local.ERROR: MYSOFT: Token acquisition error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 12:09:30] local.ERROR: MYSOFT: Invoice inbox error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 12:13:00] local.INFO: MYSOFT: Starting token fetch {"integration_id":44,"environment":"live","username":"ugur@akildoluisler.com","token_endpoint":"https://edocumentapi.mysoft.com.tr/oauth/token"} 
[2026-10-02 12:13:01] local.ERROR: MYSOFT: Token request failed {"status":400,"response":"{\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","username_used":"ugur@akildoluisler.com","environment":"live"} 
[2026-10-02 12:13:01] local.ERROR: MYSOFT: Token acquisition error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
[2026-10-02 12:13:01] local.ERROR: MYSOFT: Invoice inbox error {"error":"Failed to obtain access token: {\"error\":\"Authentication Error\",\"error_description\":\"Kullanıcı tanımsızdır. Bilgileri kontrol ediniz.\"}","integration_id":44} 
