you can generate the invoice after the search