Bug 37506 - Koha explodes when trying to create manual credit with zero amount
Summary: Koha explodes when trying to create manual credit with zero amount
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Fines and fees (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-26 21:11 UTC by Roman Dolny
Modified: 2024-07-26 21:13 UTC (History)
1 user (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 Roman Dolny 2024-07-26 21:11:58 UTC
When creating manual credit with amount equal zero Koha explodes with a message: "Exception 'Koha::Exceptions::Account::AmountNotPositive' thrown 'Debit amount passed is not positive' at /usr/share/perl5/Exception/Class/Base.pm line 88".

To reproduce:
1. Go to the patron -> Accounting -> Create manual credit.
2. Enter 0 in amount field. Click 'Add credit' button.
3. Koha explodes.