A payment's amount and discount on an invoice come to more than the invoice's payable balance: its net due, or its balance including held retention when the application sets includeRetention. 422.
The detail names each invoice and its payable balance. Nothing is written.