ED13 - Task: Scanning and Processing Entertainment Receipts

Trigger: A business entertainment event has taken place; the hospitality establishment has issued an invoice (restaurant). The expenses are to be claimed as a business expense — for this, the statutory evidence must be provided (§ 4 Abs. 5 Satz 1 Nr. 2 EStG).

What the law requires

The task in five steps

  1. Scanning — The paper/restaurant receipt is photographed/scanned and stored as an Ur-Doc (e.g. PDF) in the receipt directory.
  2. OCR capture — the interpretable text (ocr.txt) is extracted from the receipt and documented with its quality/trust (TrustVector bit vector, start 0x0001 = machine-unverified).
  3. Recognize receipt type — the receipt type is determined from the OCR text on a rule-based basis: here BUSINESS_MEAL_RECEIPT (entertainment receipt; recognized by “Bewirtungsaufwendungen”, “Bewirtete Personen”, “Anlass der Bewirtung”).
  4. Transfer to the signature process — a *.gcsig.md (signature artifact, class GCSIG) is generated, which carries the digital self-generated receipt: the legally required details as embedded content (schema business-meal-receipt-1.0), the OCR provenance (ocr), the integrated sidecar block (source), and the signature block (signature) with facsimile of the signing person.
  5. Present and sign — the artifact is set to presented, presented to the human (HITL) for signing, and after approval set to accepted → signed. The anchor for the signature is the SHA-256 of the Ur-Doc.

The artifact: receipt and signature in one document

For receipts that are transferred to the signature process, no separate .gc.md is needed: the *.gcsig.md fully carries the sidecar function (rule “Sidecar function/transition”: the .gc.md becomes the .gcsig.md, no loss of information, no competing sidecars). From schema gcsig-1.4 onward, it contains:

Block Content
subject / sha256 the Ur-Doc (PDF) with its SHA-256 as proof anchor
content the details of the self-generated receipt (business-meal-receipt-1.0)
ocr OCR full text + TrustVector (provenance)
source integrated sidecar metadata: V7GUID taxonomy, tenant/category, sphere, storage locations, tags, purpose, FZul, GCPN references
signature signer, procedure (§ 126b BGB), facsimile reference
phases lifecycle as 32-bit bit vector: draft → presented → accepted → signed (orthogonal verified)

Audit-proofness — Git-native compliance

Example (series: fictional organization KMU)

The managing director of KMU hosts a representative of a specialist publisher after a trade fair to discuss a possible publication. The restaurant receipt for 59.80 € is scanned; OCR identifies the receipt type BUSINESS_MEAL_RECEIPT. The self-generated receipt is created as *.gcsig.md (participants, occasion “trade fair — possible publication”, amount, sphere ideell, without input tax deduction, recording as reimbursement of expenses) and presented to the managing director for signing.

Tools

Tool Task
gc-sidecar scan Capture Ur-Doc (SHA-256), determine OCR text + trust
gc-sidecar detect Recognize receipt type from the OCR text (rule-based)
gc-docsign gcsig Create/embed *.gcsig.md (--content, --ocr, --source, --facsimile) and set phases

Reference