[2026-02-27 09:58:00.000] === STARTING PROCESSING SESSION === [2026-02-27 09:58:00.000] PHP Version: 8.4.16 [2026-02-27 09:58:00.000] Memory Limit: 128M [2026-02-27 09:58:00.000] Max Execution Time: 120 [2026-02-27 09:58:00.000] Disabled functions: NONE [2026-02-27 09:58:00.000] Raw body length: 475025 [2026-02-27 09:58:00.000] Provided signature: b7654311d0cc691c8ef5... [2026-02-27 09:58:00.000] Expected signature: b7654311d0cc691c8ef5... [2026-02-27 09:58:00.000] Signature verified successfully [2026-02-27 09:58:00.000] Payload JSON decoded: SUCCESS [2026-02-27 09:58:00.000] Number of PDFs to process: 1 [2026-02-27 09:58:00.000] --- Processing PDF #1 --- [2026-02-27 09:58:00.000] PDF base64 provided: YES, length: 463320 [2026-02-27 09:58:00.000] PDF bytes decoded: 347489 bytes [2026-02-27 09:58:00.000] Temp PDF written to /tmp/invoice_69a16aa8ce27b.pdf, bytes written: 347489 [2026-02-27 09:58:00.000] Temp PDF exists: YES [2026-02-27 09:58:00.000] Temp PDF size: 347489 bytes [2026-02-27 09:58:00.000] PDF hash: 6eb7aea206b3c065dabc929198f629d89ea0f15a7f78cff6d0209818df821672 [2026-02-27 09:58:00.000] Checking database cache for hash: 6eb7aea206b3c065... [2026-02-27 09:58:00.000] CACHE MISS - Not found in database [2026-02-27 09:58:00.000] Starting PDF processing (not cached) [2026-02-27 09:58:00.000] STEP 1: Quick Smalot parser attempt [2026-02-27 09:58:00.000] Smalot parsing took: 0.01 seconds [2026-02-27 09:58:00.000] Number of pages detected: 2 [2026-02-27 09:58:00.000] Smalot extracted text length: 877 [2026-02-27 09:58:00.000] Smalot parser SUCCESS - using text extraction [2026-02-27 09:58:00.000] Smalot text preview (first 200 chars): | Data: Zentrale: Föhrengasse 2, 8501 Lieboch Weblingergürtel 33/16, 8054 Graz Name: MMF GmbH Datum: 27.02.2026 Adresse:Messendorfgrund 30 RE-Zeitraum:Februar PLZ: A-8042 Graz UID-Kunde: ATU 66203039 Rechnu [2026-02-27 09:58:00.000] Using Smalot OCR method, text length: 877 [2026-02-27 09:58:00.000] Attempting OpenAI parsing with smalot OCR [2026-02-27 09:58:00.000] run_openai_parse called, text length: 877 [2026-02-27 09:58:00.000] OpenAI input preview: | Data: Zentrale: Föhrengasse 2, 8501 Lieboch Weblingergürtel 33/16, 8054 Graz Name: MMF GmbH Datum: 27.02.2026 Adresse:Messendorfgrund 30 RE-Zeitraum:Februar PLZ: A-8042 Graz UID-Kunde: ATU 66203039 Rechnu... [2026-02-27 09:58:00.000] Making OpenAI API call... [2026-02-27 09:58:03.000] OpenAI HTTP response code: 200 [2026-02-27 09:58:03.000] OpenAI response received, length: 986 [2026-02-27 09:58:03.000] OpenAI content extracted, length: 149 [2026-02-27 09:58:03.000] OpenAI parsed JSON result | Data: {"invoice_number":"2025-0613","amount":"6464.14","due_date":"2026-03-27","invoice_date":"2026-02-27","currency":"EUR"} [2026-02-27 09:58:03.000] Final AI result | Data: {"invoice_number":"2025-0613","amount":"6464.14","due_date":"2026-03-27","invoice_date":"2026-02-27","currency":"EUR"} [2026-02-27 09:58:03.000] normalize_amount called with: | Data: 6464.14 [2026-02-27 09:58:03.000] normalize_amount result: | Data: 6464.14 [2026-02-27 09:58:03.000] normalize_date_iso called with: | Data: 2026-02-27 [2026-02-27 09:58:03.000] Final extracted values | Data: {"invoice_number":"2025-0613","amount":"6464.14","due_date":"2026-03-27","invoice_date":"2026-02-27","currency":"EUR"} [2026-02-27 09:58:03.000] Attempting to save PDF to: /var/www/html/pdfs/invoice_89a55bd81efc40c97db928b95bbf00d8.pdf [2026-02-27 09:58:03.000] PDF saved successfully to /var/www/html/pdfs/invoice_89a55bd81efc40c97db928b95bbf00d8.pdf [2026-02-27 09:58:03.000] Database INSERT SUCCESS [2026-02-27 09:58:03.000] Adding to invoices array | Data: {"uuid":"89a55bd81efc40c97db928b95bbf00d8","invoice_number":"2025-0613","amount":"6464.14","due_date":"2026-03-27","invoice_date":"2026-02-27","currency":"EUR","cached":false,"ocr_method":"smalot","local_ocr_failed":false} [2026-02-27 09:58:03.000] --- Finished processing PDF #1 --- [2026-02-27 09:58:03.000] === TOTAL PROCESSING TIME: 2644.53ms === [2026-02-27 09:58:03.000] Total invoices processed: 1 [2026-02-27 09:58:03.000] Response sent, size: 237 bytes