Introduce smart search for the list of invoices
Purpose / Description
A smart search bar is introduced on the Invoice list screen to let users quickly locate invoices by typing a free-text string to identify the agreement or invoice number/reference
Use Case
| As a user I want to be able to search the invoice list for agreement name/code or invoice number/reference via smart search | |
| Primary Actor(s) | Invoicing Team(s) |
| Stakeholders and Interest | MEAG Corporate Accounting team |
| Trigger | Accessing the invoice list via processes invoices |
| Pre-condition(s) | User has access to the Invoice list screen. The invoice list contains one or more records to search against. |
| Post-condition(s) | The invoice list is narrowed to rows whose searchable fields contain a match to the typed string (Agreement name, Agreement code, Invoice number, Invoice reference The search term persists on screen (in the search bar) until cleared or changed, and can be combined with the existing filter panel. |
| Main success scenario | 1. User navigates to Invoice list. 2. User sees a search bar with a magnifying-glass icon positioned above the invoice list (below the filter panel). 3. User clicks into the search bar and types a search string (e.g. part of an invoice number or agreement name) and presses enter or uses the magnifying glass 4. the system matches the string against the searchable fields and highlights/returns matching invoices 5. The invoice list updates to show only the matching rows, together with a result count. 6. User can clear the search using the 'x' icon in the search bar to return to the unfiltered (or filter-panel-only) list. |
| Extensions | 3a. User pastes a string containing leading/trailing spaces — the system trims whitespace before matching. 6a. User clears the search bar and any active dropdown filters remain applied. |
| Exception scenarios |
|
| Special requirements | The search bar must be positioned above the invoice list (below the filter panel) and always display a magnifying-glass icon. Search must match on partial/substring text (not only exact or 'starts with' matches), and should be case-insensitive. Search should be combinable with the existing dropdown filters (Start period, End period, Invoice category, Record type, etc.) — both narrow the same result set. Response time for search-as-you-type must remain acceptable for large invoice lists (e.g. via debounce and/or minimum character threshold). |
| Open questions |
|
Mockup
Functional Requirements
| Business rules and functional requirements |
Search control placement: a search input, a search button (magnifying-glass icon), and a clear ('x') icon are added inline with the existing toolbar, positioned to the left of 'Show filters' / 'Start export'. |
Free-text matching: submitting the search term (via the search button or Enter) matches it against the searchable fields of each invoice record using a partial/substring, case-insensitive comparison (not only exact match or 'starts with'). |
Explicit search action: the search executes when the user clicks the search button (or presses Enter) — not continuously as the user types |
Combinable with filters: the search operates as an additional or prior narrowing condition on top of the existing dropdown filter panel — both can be active at the same time and are combined with AND logic. |
|
Clear search: the 'x' icon empties the search input and restores the list to the state defined by the active dropdown filters (or the full list if none are set). |
|
No match handling: when no invoices match the submitted string, the list area displays a clear 'no matching invoices found' message instead of an empty table. |
Field level specification
| Label | UI control |
Manda- tory |
Editable | Data Type | Value set | Default | Data sample |
Smart search |
Text input |
No |
Yes |
Free text (string) |
Any characters; matched as substring against searchable fields |
Empty (no search applied) |
INV-2026-004 |
Search icon |
Icon (static) |
N/A |
N/A |
N/A |
N/A — decorative, non-interactive magnifying glass |
N/A |
N/A |
Clear ('x') control |
Icon button |
No |
Yes |
Action |
Visible only when search field is non-empty |
Hidden |
N/A |
Data validation failure response
| Field label | Validation/ Business reules | Error message(s) | Data dependencies | Additional information |
N/A |
N/A |
N/A |
N/A |
N/A |
