Bug 39511 - Error 500 when applying discount of 0
Summary: Error 500 when applying discount of 0
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low minor
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-01 13:23 UTC by Caroline Cyr La Rose
Modified: 2025-04-01 13:31 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caroline Cyr La Rose 2025-04-01 13:23:46 UTC
I was testing something else and did not enter a discount amount, which resulted in an error 500. I think it should result in a warning or error message to tell the staff member that they forgot to enter a value in the discount input.

To recreate:
1. Go to a patron account > Accounting
2. Click 'Create manual invoice'
3. Enter an amount
4. Click 'Save'
5. Click 'Apply discount'
6. Click 'Confirm'
--> Error 500

It should say something like "Please enter a discount amount".