Hi,
while doing MIRO If you want to clear down payment as well then you select the "Down payment clearing" tab on the top of MIRO. In this case one more accounting document will be generated along with Invoice and this document will be same document which is generated if you clear using F-54 transaction. This document will have TDS Debit entry to reverse the Excess TDS paid.