For greatest control of Discount you want to apply, select invoice row to highlight it 'FIRST' before checking its checkbox, enter the Discount Amount, then check the
"Apply Payment" checkbox to apply payment.