Prepayment in AX 2012

Hi,

Kindly help me with the below scenerio

I have created a PO for 100000 - Vendor Balance at this time is 500000

And i have posted a Prepayment invoice for 10000 Vendor balance after posting the prepayment invoice is 490000

I paid against the prepayment invoice for 10000 and the vendor balance is 500000

But my vendor balance should actually show 510000 because i have made the advance payment…

how will i know the actual vendor balance if any advance payment is made through prepayment invoice

Regards,

Subashree S