Skip to content

Auto-match misses project invoices stored with PREFIXED doc ids (tx zSkSbMmoY37xvLAmQrpY vs ERL-2026-005-0601)

Symptom

A customer payment carrying the invoice number in its bank description synced and stayed unmatched, though the invoice exists and the sync-time auto-linker ran.

Root cause (verified live)

The reference extractor normalizes refs to the BARE number (2026-005-0601) and every auto-match lane looked the invoice up by EXACT doc id. 2025-era invoices were stored unprefixed; from 2026 the stored doc ids carry the subsidiary prefix (verified: all six 2026 projects' invoices are ERL-…). Result: every 2026 invoice was invisible to auto-match. Three duplicated copies of the same lookup carried the same assumption (sync-time transactionAutoLinker + two in invoice-auto-match).

  • βœ… Read AGENTS.md. Fixed under T-168 (shared prefix-aware lookup). Status β†’ fixed at merge; the live tx links on the next deploy + rescan/sync.
  • Source: Accounting (Diagnostics) Β· https://claude.ai/code/session_01G58Y71noihrYCDEDMexmea