If you mark to ‘Require tax detail totals to match the pre-tax amount’ in Company Setup Options { MDGP | Tools | Setup | Company | Company – click the Options button }
and the Invoice/Payment are in an Originating currency, the tax detail is not added automatically to the Debit Memo during the overpayment write off procedure, this works fine for Functional currency.

In this case, the batch will go to recovery and you need to manually add the tax detail before you post.
Needs Votes