The following details pertain to how new versions of documents and invoices are searched on and returned in TeamConnect.
Document Version:
A new version of the document will be added each time the document is checked out, and then checked back in.
With Custom searches you can find only the most recent document that has been checked in. If you go into this document you will be able to see the versions on the documents in the the versions tab in Documents.
With ElasticSearch (global search) the process works the same; you will only see the most recent version of the documents in the search results.
Invoice Version:
A new invoice version is only created when the previous invoice is rejected, and a new invoice with the same name is submitted to the client. This can also be done through the UI by creating a copy of the invoice that was rejected, and making sure to remove the 'Copy of' in the invoice name. In custom search you will only see the newest version of the invoice, and will not see the other invoice versions.
With ElasticSearch (global search) you will see all versions of the invoices.