mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 12:41:04 +00:00
The PNR is the CBE_BILL reference the customer actually pays against, but it is stamped onto the booking at payment-initiation time — it is a column on neither the invoice nor the payment. Both surfaces read it back by source id, the same lookup the sealed invoice PDF already did, so screen, export and document now agree. The export's join casts bk.id::text rather than i.source_id::uuid: source_id is a bare varchar pointer that is not always a UUID (EIMS self-test rows carry a slug), and casting that direction throws on those rows.