Unallocated Deposit Payment

Do you know if it’s possible to take a discount on an invoice that is being paid via Apply Credit Memo with the type “Unallocated Deposit Payment”.