Created attachment 110770 [details]
In Koha 20.05, the apply discount button will appear on lines in the Accounting module. However, it also appears on lines in the Accounting module for transactions that can't be discounted, such as Write-Offs, voided transactions, and all $0 lines. (see screenshot). Can this button be grey-ed out if it can't be applied? If a user were to attempt to use this discount button on a $0 transaction, there is an Internal Server Error that occurs.