How to list all the project in purchase invoice?

In purchase invoice,projects are listed based on the company,but how to list out all the projects which is linked to different companies?