ED13 - Task: Scan and process business meal receipts

Trigger: Business entertainment took place; the hospitality establishment has issued an invoice (restaurant). The expenses are to be claimed as operating expenses — this requires statutory evidence (§ 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 the original document (e.g., PDF) in the receipt directory.
  2. OCR capture — The machine-readable text (ocr.txt) is extracted from the receipt, and its quality/trust (TrustVector-BitVector, starting at 0x0001 = machine-unverified) is documented.
  3. Detect receipt type — The receipt type is determined from the OCR text using rules: here BUSINESS_MEAL_RECEIPT (business meal receipt; identified by “business entertainment expenses”, “persons hosted”, “occasion for the business entertainment”).
  4. Include in the signing process — A *.gcsig.md (signature artifact, class GCSIG) is generated that carries the digital self-issued receipt: the legally required details in an embedded content block (schema business-meal-receipt-1.0), the OCR provenance (ocr), the integrated sidecar block (source), and the signature block (signature) with a facsimile of the signatory.
  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 original document.

The artifact: receipt and signature in one document

For receipts included in the signing process, no separate .v7g.md is needed: the *.gcsig.md fully performs the sidecar function (rule “Sidecar function/transition”: the .gcsig.md is created from the .v7g.md, no loss of information, no competing sidecars). Starting with schema gcsig-1.4, it contains:

Block Content
subject / sha256 the original document (PDF) with its SHA-256 as the evidentiary anchor
content the details of the self-issued 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 signatory, procedure (§ 126b BGB), facsimile reference
phases lifecycle as a 32-bit BitVector: draft → presented → accepted → signed (with verified orthogonal)

Revision safety — Git-native compliance

Example (series: fictional organization KMU)

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

Tools

Tool Task
gc-sidecar scan Capture the original document (SHA-256), determine OCR text and trust
gc-sidecar detect Detect the receipt type from the OCR text (rule-based)
gc-docsign gcsig Create/embed *.gcsig.md and set phases

References