Can we do Prepayment Invoice functionality after the Partial Purchase Invoice in AX 2012 ??

In this modification, user should be able to generate the Prepayment Invoice until the Purchase Order status becomes ‘Invoiced’. So user should be able to generate multiple Prepayment Invoices/Multiple Product Receipts/Multiple Purchase Invoices.

In standard Dynamics AX 2012 user is not able to generate the Prepayment Invoice if even a single Purchase Invoice has been posted against the Purchase Order.

How can we achieve this ?

Any one have idea regarding this.

If yes then please help or advice me.

Regards

Arun