Files
tenant-registry/internal/invoiceintake
Sharang ParnerkarandClaude Opus 5.5 7857fb4f09
ci / shared (pull_request) Successful in 14s
ci / test (pull_request) Successful in 26m55s
ci / image (pull_request) Skipped
fix(invoiceintake): qualify order_by so Contact lookups by e-mail work
Every intake run failed with "list Contact: HTTP 500: (1052, Column
'creation' in ORDER BY is ambiguous)": the supplier lookup filters on the
child table Contact Email, Frappe joins it, and the bare order_by column
exists in both tables. Nothing sent to invoice@ became a draft (t53).
order_by is now `tab<Doctype>`.`creation`; the fake ERP in the tests
refuses an unqualified one with a child-table filter, like MariaDB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4
2026-10-29 12:34:12 +01:00
..