Bug 39512 - Error 500 when applying payout of 0
Summary: Error 500 when applying payout 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:27 UTC by Caroline Cyr La Rose
Modified: 2025-04-01 13:31 UTC (History)
2 users (show)

See Also:
GIT URL:
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:27:57 UTC
I was testing something else and did not enter a payout 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 payout input.

To recreate:
1. Go to a patron account > Accounting
2. Click 'Create manual invoice'
3. Enter an amount
4. Click 'Save and pay'
5. Click 'Confirm'
6. Click 'Transactions'
7. Click 'Payout amount' (should the button even appear if the patron has 0 due?)
8. Click 'Confirm'

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