[2026-02-18 14:36:25.000] === STARTING PROCESSING SESSION === [2026-02-18 14:36:25.000] PHP Version: 8.4.16 [2026-02-18 14:36:25.000] Memory Limit: 128M [2026-02-18 14:36:25.000] Max Execution Time: 120 [2026-02-18 14:36:25.000] Disabled functions: NONE [2026-02-18 14:36:25.000] Raw body length: 1334640 [2026-02-18 14:36:25.000] Provided signature: 7914c3bfbd694bb36c5e... [2026-02-18 14:36:25.000] Expected signature: 7914c3bfbd694bb36c5e... [2026-02-18 14:36:25.000] Signature verified successfully [2026-02-18 14:36:25.000] Payload JSON decoded: SUCCESS [2026-02-18 14:36:25.000] Number of PDFs to process: 1 [2026-02-18 14:36:25.000] --- Processing PDF #1 --- [2026-02-18 14:36:25.000] PDF base64 provided: YES, length: 1315744 [2026-02-18 14:36:25.000] PDF bytes decoded: 986806 bytes [2026-02-18 14:36:25.000] Temp PDF written to /tmp/invoice_6995ce6958aff.pdf, bytes written: 986806 [2026-02-18 14:36:25.000] Temp PDF exists: YES [2026-02-18 14:36:25.000] Temp PDF size: 986806 bytes [2026-02-18 14:36:25.000] PDF hash: 823966a8bf7a1600bc135f5389b432d676eef8e2558643f51d3fd2113c96b89a [2026-02-18 14:36:25.000] Checking database cache for hash: 823966a8bf7a1600... [2026-02-18 14:36:25.000] CACHE MISS - Not found in database [2026-02-18 14:36:25.000] Starting PDF processing (not cached) [2026-02-18 14:36:25.000] STEP 1: Quick Smalot parser attempt [2026-02-18 14:36:25.000] Smalot parsing took: 0.01 seconds [2026-02-18 14:36:25.000] Number of pages detected: 3 [2026-02-18 14:36:25.000] Smalot extracted text length: 946 [2026-02-18 14:36:25.000] Smalot parser SUCCESS - using text extraction [2026-02-18 14:36:25.000] Smalot text preview (first 200 chars): | Data: Zentrale: Föhrengasse 2, 8501 Lieboch Weblingergürtel 33/16, 8054 Graz Name: ERS Elektroanlagen GmbH Datum: 03.02.2026 Adresse:Rossegg 1 RE-Zeitraum:Jänner PLZ: A-8191 Koglhof UID-Kunde: ATU 688076 [2026-02-18 14:36:25.000] Using Smalot OCR method, text length: 946 [2026-02-18 14:36:25.000] Attempting OpenAI parsing with smalot OCR [2026-02-18 14:36:25.000] run_openai_parse called, text length: 946 [2026-02-18 14:36:25.000] OpenAI input preview: | Data: Zentrale: Föhrengasse 2, 8501 Lieboch Weblingergürtel 33/16, 8054 Graz Name: ERS Elektroanlagen GmbH Datum: 03.02.2026 Adresse:Rossegg 1 RE-Zeitraum:Jänner PLZ: A-8191 Koglhof UID-Kunde: ATU 688076... [2026-02-18 14:36:25.000] Making OpenAI API call... [2026-02-18 14:36:29.000] OpenAI HTTP response code: 200 [2026-02-18 14:36:29.000] OpenAI response received, length: 986 [2026-02-18 14:36:29.000] OpenAI content extracted, length: 149 [2026-02-18 14:36:29.000] OpenAI parsed JSON result | Data: {"invoice_number":"2025-0567","amount":"4857.60","due_date":"2026-02-28","invoice_date":"2026-02-03","currency":"EUR"} [2026-02-18 14:36:29.000] Final AI result | Data: {"invoice_number":"2025-0567","amount":"4857.60","due_date":"2026-02-28","invoice_date":"2026-02-03","currency":"EUR"} [2026-02-18 14:36:29.000] normalize_amount called with: | Data: 4857.60 [2026-02-18 14:36:29.000] normalize_amount result: | Data: 4857.60 [2026-02-18 14:36:29.000] normalize_date_iso called with: | Data: 2026-02-03 [2026-02-18 14:36:29.000] Final extracted values | Data: {"invoice_number":"2025-0567","amount":"4857.60","due_date":"2026-02-28","invoice_date":"2026-02-03","currency":"EUR"} [2026-02-18 14:36:29.000] Attempting to save PDF to: /var/www/html/pdfs/invoice_3eafccb08a2712afe452f6e56b35d8db.pdf [2026-02-18 14:36:29.000] PDF saved successfully to /var/www/html/pdfs/invoice_3eafccb08a2712afe452f6e56b35d8db.pdf [2026-02-18 14:36:29.000] Database INSERT SUCCESS [2026-02-18 14:36:29.000] Adding to invoices array | Data: {"uuid":"3eafccb08a2712afe452f6e56b35d8db","invoice_number":"2025-0567","amount":"4857.60","due_date":"2026-02-28","invoice_date":"2026-02-03","currency":"EUR","cached":false,"ocr_method":"smalot","local_ocr_failed":false} [2026-02-18 14:36:29.000] --- Finished processing PDF #1 --- [2026-02-18 14:36:29.000] === TOTAL PROCESSING TIME: 3811.69ms === [2026-02-18 14:36:29.000] Total invoices processed: 1 [2026-02-18 14:36:29.000] Response sent, size: 237 bytes