Purchase invoice assigned to task

Hello!

I am trying to find the way to assign the PO, MRQST and Purchase Invoice to task as well as project.

Please give me a clue