[Koha-bugs] [Bug 19532] Recalls for Koha

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 26 01:07:59 CEST 2018


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

--- Comment #287 from Alex Buckley <alexbuckley at catalyst.net.nz> ---
Created attachment 81247
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=81247&action=edit
Bug 19532: Added ability to set Recall due date interval, and Recall pickup
period to hours

Previously you could only set a number of days a recalled item
has to be returned (Recall due date interval (days)) and a number of
days available for a recalled item to be picked up.

For academic libraries which often loan high-demand items out by a
certain number of hours being able to set the number of hours a borrower
has to return a recalled item and for the recaller to pickup the waiting
recall is important.

This patch implement a check in C4::Overdue->CalcFine() if item is
recalled.

If the item has been recalled and is past the due date then use the
recall_overdue_fine to calculate the appropriate fine to charge the
patron, otherwise use the fines value in the issuingrules table

Also implemented atomicupdate to change recalls waitingdate and
expirationdate to datetime datatypes with associated template changes in
the recalls reports to display the date and time of these recall values.

Test plan:
1. Apply all other patches on bug 19532 (except this patch)

2. Set a fine charge interval period (if you do not have this field set
in the circ rule then the fine will not be applied).

3. Set the 'Unit' of the circ rule to 'hours', 'Recall due date
interval' = 1, recall overdue fune amount= 1, recall pickup period=1

4. Check out an item to borrower A and recall it in the OPAC by borrower
B

5. In the database manually change the issues.date_due to 1 hour
before the current time

6. From the Koha shell run './misc/cronjobs/fines.pl'

7. Notice the fine of 1 has been applied to the borrower for being 1
hour late in returning the recall

8. Return the item and confirm the recall. Manually change the waiting
date to more than 1 hour before the current time and repeat step 6
running overdue_notices.pl

9. Notice the recall is overdue now

Sponsored-By: Toi Ohomai Institute of Technology, New Zealand

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


More information about the Koha-bugs mailing list