mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
feat(billing): search invoices by PNR and transaction ref
Both are numbers a customer or a provider support desk quotes back, so they belong in the free-text box rather than behind a filter pill. The transaction id and merchant order id are plain ORs — the payment alias is already joined by every caller of applyInvoiceFilters. The PNR folds into the existing booking EXISTS block instead of adding a second subquery, so it inherits that block's correlation and also matches warehouse-, first-mile- and last-mile-sourced invoices, not just booking-sourced ones. bk is promoted to alwaysJoin now that the export's scope() references it.
This commit is contained in:
@@ -370,7 +370,7 @@ export default function InvoicesPanel() {
|
||||
<FilterBar
|
||||
defs={INVOICE_FILTER_DEFS}
|
||||
controls={controls}
|
||||
searchPlaceholder="Search invoice, customer, booking ref, GRN or shipping line…"
|
||||
searchPlaceholder="Search invoice, customer, booking ref, PNR, transaction ref, GRN or shipping line…"
|
||||
sortOptions={SORT_OPTIONS}
|
||||
viewId="invoices"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user