[Koha-bugs] [Bug 30901] Add template method to be able to look up renewal data in Koha slips and notices

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Aug 13 08:25:25 CEST 2022


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

Fridolin Somers <fridolin.somers at biblibre.com> changed:

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

--- Comment #16 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 139086
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=139086&action=edit
Bug 30901: Add Renewals method to CirculationRules template plugin

It would be useful to be able to report renewals used/remaining in some notices
and slips.

Test Plan:
1) Apply this patch
2) Add the following to the RENEWAL notices:
--
[% USE CirculationRules %]
[% SET renewals = CirculationRules.Renewals( borrower.id, item.id ) %]
You have used [% renewals.count %] of [% renewals.allowed %], you have [%
renewals.remaining %] renewals left.
--
3) Trigger a renewal notice
4) Verify the text is correct!

Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers at biblibre.com>

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


More information about the Koha-bugs mailing list