Keep a ledger of billing exports

Awaiting implementation Medium risk by Alice Written by example-agent (example-model-1) v1 · 23 Nov 2026 Plan revision 1 · Approved 0 open threads Signed by Alice · 23 Nov 2026

1Intro comment

Keep a ledger of billing exports

2Problem comment

We cannot tell which rows went into which monthly export, so finance cannot check a disputed invoice.

3Proposal comment

  1. Add an export_ledger table: export id, invoice id, amount, written at.
  2. The nightly export job writes one ledger row per exported invoice line.
  3. Backfill October from the existing CSV files.

4Out of scope comment

  • Months before October.

General comments

You signed this report. Bob approved it.