Docs

Invoice lifecycle

Capture → process → journal entry → ERP action — step by step.

1. Capture

Each user configures their own connections. A capture pulls PDFs from the configured source. Events such as document_captured mark progress in the system.

2. Process

PDF text is extracted, then classified and structured into invoice fields. Providers can be deterministic, Ollama, or Anthropic. Duplicate detection and page orientation helpers keep the pipeline robust.

3. Journal entry

From the extracted invoice, Gestum builds a balanced journal entry (purchases / input VAT / suppliers) via journalEntryBuilder — accounting structure first, AI assistance second.

4. ERP action

Entries export through the ErpExporter port. The default stub makes the contract explicit: integration is deliberate, not accidental.