[Koha-bugs] [Bug 7560] SIP Self Checkout Ignoring Fines Thresholds for Not Being able to Check Out Books

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 19 13:03:47 CEST 2015


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

--- Comment #40 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Comment on attachment 42595
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=42595
Bug 7560 - SIP Self Checkout Ignoring Fines Thresholds for Not Being able to
Check Out Books

Review of attachment 42595:
 --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=7560&attachment=42595)
-----------------------------------------------------------------

::: C4/SIP/ILS/Transaction/Renew.pm
@@ +47,5 @@
>      }
> +
> +    unless ( C4::Overdues::GetTotalFines($borrower->{borrowernumber}) < C4::Context->preference('OPACFineNoRenewals') ) {
> +        $renewokay = 0;
> +        $renewerror = 'too_many_fines'

I have not tested, but this certainly needs more changes.
Looking at the code, there is a 
  $renewerror=~s/too_many/Item has reached maximum renewals/;
few lines after.

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


More information about the Koha-bugs mailing list