[Koha-bugs] [Bug 27946] Add a charge per article request to patron categories configuration

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 22 16:46:55 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27946

--- Comment #10 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
[4] Test by putting negative amount in fee on patron category
=> add_debit should throw an exception..
Seems that I cannot save that value with category on the list view. 
value="[% category.article_request_fee | $Price on_editing => 1 %]"
Koha::Number::Price->new( $value )->format_for_editing
$VAR1 = '-10.00';
But -10 is saved in the DATABASE ! Not shown in STAFF (list view shows only a
minus; detail form does show -10)
So, yes adding a request now crashes: Debit amount passed is not positive at
/usr/share/perl5/Exception/Class/Base.pm line 88
Conclusion: The categories form should enforce the amount to be zero or
POSITIVE.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list