Bug 37506

Summary: Koha explodes when trying to create manual credit with zero amount
Product: Koha Reporter: Roman Dolny <roman.dolny>
Component: Fines and feesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: januszop
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

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.