Bug 26542 - Apply Discount button appears when it can't be used.
Summary: Apply Discount button appears when it can't be used.
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Fines and fees (show other bugs)
Version: 20.05
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 24081
Blocks: 14825
  Show dependency treegraph
 
Reported: 2020-09-25 17:46 UTC by Kelly McElligott
Modified: 2021-02-02 08:55 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
apply discount (86.06 KB, image/png)
2020-09-25 17:46 UTC, Kelly McElligott
Details

Note You need to log in before you can comment on or make changes to this bug.
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.