[2026-02-12 09:23:17.000] === STARTING PROCESSING SESSION === [2026-02-12 09:23:17.000] PHP Version: 8.4.16 [2026-02-12 09:23:17.000] Memory Limit: 128M [2026-02-12 09:23:17.000] Max Execution Time: 120 [2026-02-12 09:23:17.000] Disabled functions: NONE [2026-02-12 09:23:17.000] Raw body length: 1140378 [2026-02-12 09:23:17.000] Provided signature: aea23b62224710cc5f6b... [2026-02-12 09:23:17.000] Expected signature: aea23b62224710cc5f6b... [2026-02-12 09:23:17.000] Signature verified successfully [2026-02-12 09:23:17.000] Payload JSON decoded: SUCCESS [2026-02-12 09:23:17.000] Number of PDFs to process: 1 [2026-02-12 09:23:17.000] --- Processing PDF #1 --- [2026-02-12 09:23:17.000] PDF base64 provided: YES, length: 1110332 [2026-02-12 09:23:17.000] PDF bytes decoded: 832748 bytes [2026-02-12 09:23:17.000] Temp PDF written to /tmp/invoice_698d9c05738ee.pdf, bytes written: 832748 [2026-02-12 09:23:17.000] Temp PDF exists: YES [2026-02-12 09:23:17.000] Temp PDF size: 832748 bytes [2026-02-12 09:23:17.000] PDF hash: 1560664495dcd68d44d7e323fec189bed502d326a4614311e4b2596ce9e8176b [2026-02-12 09:23:17.000] Checking database cache for hash: 1560664495dcd68d... [2026-02-12 09:23:17.000] CACHE MISS - Not found in database [2026-02-12 09:23:17.000] Starting PDF processing (not cached) [2026-02-12 09:23:17.000] STEP 1: Quick Smalot parser attempt [2026-02-12 09:23:17.000] Smalot parsing took: 0.03 seconds [2026-02-12 09:23:17.000] Number of pages detected: 6 [2026-02-12 09:23:17.000] Smalot extracted text length: 995 [2026-02-12 09:23:17.000] Smalot parser SUCCESS - using text extraction [2026-02-12 09:23:17.000] Smalot text preview (first 200 chars): | Data: Zentrale: Föhrengasse 2, 8501 Lieboch Lazarettgürtel 81, 8020 Graz Name: ib-g engineering & consulting GmbH Datum: 12.02.2026 Adresse:Föhrengasse 2 RE-Zeitraum:Jänner PLZ: 8501 Lie [2026-02-12 09:23:17.000] Using Smalot OCR method, text length: 995 [2026-02-12 09:23:17.000] Attempting OpenAI parsing with smalot OCR [2026-02-12 09:23:17.000] run_openai_parse called, text length: 995 [2026-02-12 09:23:17.000] OpenAI input preview: | Data: Zentrale: Föhrengasse 2, 8501 Lieboch Lazarettgürtel 81, 8020 Graz Name: ib-g engineering & consulting GmbH Datum: 12.02.2026 Adresse:Föhrengasse 2 RE-Zeitraum:Jänner PLZ: 8501 Lie... [2026-02-12 09:23:17.000] Making OpenAI API call... [2026-02-12 09:23:18.000] OpenAI HTTP response code: 200 [2026-02-12 09:23:18.000] OpenAI response received, length: 990 [2026-02-12 09:23:18.000] OpenAI content extracted, length: 150 [2026-02-12 09:23:18.000] OpenAI parsed JSON result | Data: {"invoice_number":"2025-0596","amount":"12299.25","due_date":"2026-05-12","invoice_date":"2026-02-12","currency":"EUR"} [2026-02-12 09:23:18.000] Final AI result | Data: {"invoice_number":"2025-0596","amount":"12299.25","due_date":"2026-05-12","invoice_date":"2026-02-12","currency":"EUR"} [2026-02-12 09:23:18.000] normalize_amount called with: | Data: 12299.25 [2026-02-12 09:23:18.000] normalize_amount result: | Data: 12299.25 [2026-02-12 09:23:18.000] normalize_date_iso called with: | Data: 2026-02-12 [2026-02-12 09:23:18.000] Final extracted values | Data: {"invoice_number":"2025-0596","amount":"12299.25","due_date":"2026-05-12","invoice_date":"2026-02-12","currency":"EUR"} [2026-02-12 09:23:18.000] Attempting to save PDF to: /var/www/html/pdfs/invoice_96ac493b31e4d60e264a765ff963789c.pdf [2026-02-12 09:23:18.000] PDF saved successfully to /var/www/html/pdfs/invoice_96ac493b31e4d60e264a765ff963789c.pdf [2026-02-12 09:23:18.000] Database INSERT SUCCESS [2026-02-12 09:23:18.000] Adding to invoices array | Data: {"uuid":"96ac493b31e4d60e264a765ff963789c","invoice_number":"2025-0596","amount":"12299.25","due_date":"2026-05-12","invoice_date":"2026-02-12","currency":"EUR","cached":false,"ocr_method":"smalot","local_ocr_failed":false} [2026-02-12 09:23:18.000] --- Finished processing PDF #1 --- [2026-02-12 09:23:18.000] === TOTAL PROCESSING TIME: 1495.31ms === [2026-02-12 09:23:18.000] Total invoices processed: 1 [2026-02-12 09:23:18.000] Response sent, size: 238 bytes