[Koha-bugs] [Bug 23051] Optionally renew fine accruing items when all fines on item are paid off

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 26 09:32:15 CEST 2019


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

Andrew Isherwood <andrew.isherwood at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #91792|0                           |1
        is obsolete|                            |

--- Comment #12 from Andrew Isherwood <andrew.isherwood at ptfs-europe.com> ---
Created attachment 91795
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91795&action=edit
Bug 23051: Renew items when fines paid off

When the RenewAccruingItemWhenPaid syspref is enabled and all the fines
on an item that is accruing fines are paid, we automatically renew that
item to prevent it from starting to accrue fines again.

This patch adds an additional argument to C4::Circulation::AddRenewal
which allows us to skip the calculation of fines upon renewal, which we
don't want to do if the fines on that item have just been paid. Existing
calls to AddRenewal have not been amended because there seems to be a
convention of only passing undef when adding arguments that require
their positioning to be maintained. Since the new argument is the last
one, this is not the case with any existing call.

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


More information about the Koha-bugs mailing list