Hi Imran,
Have you tried using the standard AX subcontracting functionality that is available for production orders? You can link & start a production order from a project and if you setup this production order for subcontracting the PO will automatically be created and linked to your project.
Ludwig