[2026-02-09 13:28:21.000] === STARTING PROCESSING SESSION === [2026-02-09 13:28:21.000] PHP Version: 8.4.16 [2026-02-09 13:28:21.000] Memory Limit: 128M [2026-02-09 13:28:21.000] Max Execution Time: 120 [2026-02-09 13:28:21.000] Disabled functions: NONE [2026-02-09 13:28:21.000] Raw body length: 1087329 [2026-02-09 13:28:21.000] Provided signature: 4a7521907f902525a167... [2026-02-09 13:28:21.000] Expected signature: 4a7521907f902525a167... [2026-02-09 13:28:21.000] Signature verified successfully [2026-02-09 13:28:21.000] Payload JSON decoded: SUCCESS [2026-02-09 13:28:21.000] Number of PDFs to process: 1 [2026-02-09 13:28:21.000] --- Processing PDF #1 --- [2026-02-09 13:28:21.000] PDF base64 provided: YES, length: 1067868 [2026-02-09 13:28:21.000] PDF bytes decoded: 800901 bytes [2026-02-09 13:28:21.000] Temp PDF written to /tmp/invoice_6989e0f507c6c.pdf, bytes written: 800901 [2026-02-09 13:28:21.000] Temp PDF exists: YES [2026-02-09 13:28:21.000] Temp PDF size: 800901 bytes [2026-02-09 13:28:21.000] PDF hash: ec9da2609508bfabf48e33bccc04f573ec7c3ce16c8442b975e87886000f6077 [2026-02-09 13:28:21.000] Checking database cache for hash: ec9da2609508bfab... [2026-02-09 13:28:21.000] CACHE MISS - Not found in database [2026-02-09 13:28:21.000] Starting PDF processing (not cached) [2026-02-09 13:28:21.000] STEP 1: Quick Smalot parser attempt [2026-02-09 13:28:21.000] Smalot parsing took: 0.02 seconds [2026-02-09 13:28:21.000] Number of pages detected: 1 [2026-02-09 13:28:21.000] Smalot extracted text length: 1497 [2026-02-09 13:28:21.000] Smalot parser SUCCESS - using text extraction [2026-02-09 13:28:21.000] Smalot text preview (first 200 chars): | Data: Planetsoft GmbH - Landstraßer Hauptstraße 2 Top/M1.13.06, 1030 Wien INVOICE-NR. 2025-023 DATE: 31.12.2025 TEL. 0043 664 917 1627 E-MAIL damir.buljubasic@planetsoft.eu VAT-ID ATU78872935 [2026-02-09 13:28:21.000] Using Smalot OCR method, text length: 1497 [2026-02-09 13:28:21.000] Attempting OpenAI parsing with smalot OCR [2026-02-09 13:28:21.000] run_openai_parse called, text length: 1497 [2026-02-09 13:28:21.000] OpenAI input preview: | Data: Planetsoft GmbH - Landstraßer Hauptstraße 2 Top/M1.13.06, 1030 Wien INVOICE-NR. 2025-023 DATE: 31.12.2025 TEL. 0043 664 917 1627 E-MAIL damir.buljubasic@planetsoft.eu VAT-ID ATU78872935 ... [2026-02-09 13:28:21.000] Making OpenAI API call... [2026-02-09 13:28:22.000] OpenAI HTTP response code: 200 [2026-02-09 13:28:22.000] OpenAI response received, length: 989 [2026-02-09 13:28:22.000] OpenAI content extracted, length: 149 [2026-02-09 13:28:22.000] OpenAI parsed JSON result | Data: {"invoice_number":"2025-023","amount":"54192.00","due_date":"2026-03-31","invoice_date":"2025-12-31","currency":"EUR"} [2026-02-09 13:28:22.000] Final AI result | Data: {"invoice_number":"2025-023","amount":"54192.00","due_date":"2026-03-31","invoice_date":"2025-12-31","currency":"EUR"} [2026-02-09 13:28:22.000] normalize_amount called with: | Data: 54192.00 [2026-02-09 13:28:22.000] normalize_amount result: | Data: 54192.00 [2026-02-09 13:28:22.000] normalize_date_iso called with: | Data: 2025-12-31 [2026-02-09 13:28:22.000] Final extracted values | Data: {"invoice_number":"2025-023","amount":"54192.00","due_date":"2026-03-31","invoice_date":"2025-12-31","currency":"EUR"} [2026-02-09 13:28:22.000] Attempting to save PDF to: /var/www/html/pdfs/invoice_a21971acac8f881b6104866f139c43a4.pdf [2026-02-09 13:28:22.000] PDF saved successfully to /var/www/html/pdfs/invoice_a21971acac8f881b6104866f139c43a4.pdf [2026-02-09 13:28:22.000] Database INSERT SUCCESS [2026-02-09 13:28:22.000] Adding to invoices array | Data: {"uuid":"a21971acac8f881b6104866f139c43a4","invoice_number":"2025-023","amount":"54192.00","due_date":"2026-03-31","invoice_date":"2025-12-31","currency":"EUR","cached":false,"ocr_method":"smalot","local_ocr_failed":false} [2026-02-09 13:28:22.000] --- Finished processing PDF #1 --- [2026-02-09 13:28:22.000] === TOTAL PROCESSING TIME: 1646.09ms === [2026-02-09 13:28:22.000] Total invoices processed: 1 [2026-02-09 13:28:22.000] Response sent, size: 237 bytes