Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented invoice search box in latest invoice section. #379

Conversation

rohan-equinix
Copy link
Contributor

@rohan-equinix rohan-equinix commented Sep 18, 2023

In this PR, we are introducing a search box in Latest Invoices so that users can easily search an invoice by number

  • Search Invoice by typing the number in the search box & hit Enter.
  • Search invoice by typing the number in the search box & click on the Search button.
  • When there are no records found, we will display a customized message i.e. No matching records found, please click on Latest Invoices & the user can fetch & see invoices once clicks on Latest Invoice
Screenshot 2023-09-18 at 8 21 03 PM Screenshot 2023-09-18 at 8 21 34 PM


function searchInvoices () {
var invoiceSearch = document.getElementById('invoice-search').value;
table.search( invoiceSearch ).draw();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Is this performing only client-side search (in datatables)? What happens when there are multiple pages of invoices?
  • Is this performing a full table search or just search on a specific column? Would search for "15" match both the invoice number and the invoice amount?

Copy link
Contributor Author

@rohan-equinix rohan-equinix Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Pierre,

  1. We will be doing client-side search only as we are utilizing Datatable Search() API. Also, we will search from multiple pages and not from a single page.
  2. We are performing a search only on the Number column and not full table search. So if we are searching for 15, it will give search results based on invoice number and not other columns.

@rohan-equinix
Copy link
Contributor Author

As invoice specific search feature is already implemented in killbill-admin-ui closing this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants