Hello Deepak,
 
I was just trying the second scenario where there is a customer advance. 
But the TDS receivable is not working. It is taking the Main account. And the amount is also Negative. Could you please help me on this? Thank you in advance.