[Koha-bugs] [Bug 13592] Hold fee not being applied on placing a hold

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 14 15:46:18 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13592

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart at bugs.koha-c
                   |                            |ommunity.org

--- Comment #3 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
What I understand:

If it's the first hold placed on this record, the patron is not charged.
See the following (ugly) snippet of code (from C4::Reserves::GetReserveFee):

 794         if ( $allissued == 0 ) {
 795             my $rsth =
 796               $dbh->prepare("SELECT * FROM reserves WHERE biblionumber =
?");
 797             $rsth->execute($biblionumber);
 798             if ( my $rdata = $rsth->fetchrow_hashref ) {
 799             }   
 800             else { 
 801                 $fee = 0;
 802             }       
 803         }

If no reserve exists, the fee is set to 0.

This behavior seems to exist for a while.

What would be the expected behavior?

Does someone have an idea of why this condition exists?

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


More information about the Koha-bugs mailing list