All you have to do is to show this payment on the date in which the advance given & the tds deducted on the same. I think there should not be any complicacy in showing in the return. TDS must have been deducted on the advance if that amount cross the limit prescribed by the act which is Rs.20000/- per contract.If the tds was deduted on the subsequent date then simply show net amount excluding that advance & the whole tds amount in your tds return.