Bug 26542

Summary: Apply Discount button appears when it can't be used.
Product: Koha Reporter: Kelly McElligott <kelly>
Component: Fines and feesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: marjorie.barry-vila, martin.renvoize, patrick.robitaille
Version: 20.05   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 24081    
Bug Blocks: 14825    
Attachments: apply discount

Description Kelly McElligott 2020-09-25 17:46:15 UTC
Created attachment 110770 [details]
apply discount

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.