TDS Calculation On advance Payment

Hey Guys,

I have Created a one Purchase Order and Created One Payment Entry from that Purchase Order. In Payment Entry I want to applt TDS amount based on Paid amount of payment entry but TDS is deducted as per the Purchase Order amount.

Can any one tell me how to do this ?

Thanks