Hi Sammy
First, look at the customer's transactions and confirm that the balance outstanding for that invoice is really negative $9,957,020.05. If it isn't then don't do what I'm about to write, instead let us know the balance.
Create a cash batch. Enter a cash entry for negative $9,957,037.00, using the same date as the invoice and the same check number, except add an "A" to the end (check 1234A instead of 1234). Apply the negative check against the negative invoice balance, and post. That's it.
Steve