[2026-03-04 08:39:29] [INFO] =========================================== [2026-03-04 08:39:29] [INFO] Quotations Processor Log [2026-03-04 08:39:29] [INFO] Record ID: 000019cb-8008-7be9-7476-989af8bac955 [2026-03-04 08:39:29] [INFO] Table: quotations [2026-03-04 08:39:29] [INFO] Timestamp: 2026-03-04 08:39:29 [2026-03-04 08:39:29] [INFO] =========================================== [2026-03-04 08:39:29] [INFO] ========== START: processQuotationSubmission ========== [2026-03-04 08:39:29] [INFO] Function called for record ID: 000019cb-8008-7be9-7476-989af8bac955 [2026-03-04 08:39:29] [DEBUG] Form data received: {"invoice_id":"000019cb-8008-7be9-7476-989af8bac955","tenant_id":"019c358b-5fe1-7e90-c3cc-a17b42a96622","department_id":null,"workflow_id":34} [2026-03-04 08:39:29] [INFO] Detected table: quotations (Type: proforma) [2026-03-04 08:39:29] [DEBUG] ID field: quotation_id, Number field: quotation_number [2026-03-04 08:39:29] [DEBUG] STEP 1: Fetching quotation data from database [2026-03-04 08:39:29] [DEBUG] QueryBuilder instance created [2026-03-04 08:39:29] [DEBUG] Database query executed for quotation_id: 000019cb-8008-7be9-7476-989af8bac955 [2026-03-04 08:39:29] [ERROR] ERROR: Record not found in database (quotations) [2026-03-04 08:39:29] [ERROR] ========== EXCEPTION CAUGHT ========== [2026-03-04 08:39:29] [ERROR] ERROR: Quotations record not found: 000019cb-8008-7be9-7476-989af8bac955 [2026-03-04 08:39:29] [ERROR] Exception file: /var/www/POS/api/services/QuotationsProcessor.php line: 115 [2026-03-04 08:39:29] [ERROR] Stack trace: #0 [internal function]: App\Services\QuotationsProcessor::processQuotationSubmission() #1 /var/www/POS/api/services/workflow_steps/CustomFunctionStep.php(108): call_user_func_array() #2 /var/www/POS/api/services/WorkflowEngine.php(495): App\Services\WorkflowSteps\CustomFunctionStep->execute() #3 /var/www/POS/api/services/WorkflowEngine.php(681): App\Services\WorkflowEngine->executeStep() #4 /var/www/POS/api/services/WorkflowEngine.php(143): App\Services\WorkflowEngine->runSteps() #5 /var/www/POS/api/services/WorkflowEngine.php(176): App\Services\WorkflowEngine->handleEvent() #6 /var/www/POS/api/services/WorkflowEngine.php(188): App\Services\WorkflowEngine->emit() #7 /var/www/POS/api/controllers/GenericController.php(373): App\Services\WorkflowEngine::trigger() #8 /var/www/POS/api/controllers/SyncController.php(202): App\Controllers\GenericController->processWorkflowEvents() #9 /var/www/POS/api/controllers/SyncController.php(214): App\Controllers\GenericController@anonymous->exec() #10 /var/www/POS/api/controllers/SyncController.php(1289): App\Controllers\SyncController->triggerWorkflow() #11 /var/www/POS/api/router.php(224): App\Controllers\SyncController->push() #12 /var/www/POS/api/index.php(32): require_once('...') #13 {main}