[Koha-bugs] [Bug 2720] Overdues which debar automatically should undebar automatically when returned

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 4 21:37:30 CET 2013


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

--- Comment #10 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 15045
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=15045&action=edit
Bug 2720 - Overdues which debar automatically should undebar automatically when
returned

This patch adds a more extensible and flexible debarments system to Koha. The
fields
borrowers.debarred and borrowers.debarredcomment are retained for compatibility
and
speed.

This system supports having debarments for multiple reasons. There are
currently
three types of debarments:
OVERDUES    - Generated by overdue_notices.pl if the notice should debar a
patron
SUSPENSION  - A punative debarment generated on checkin via an issuing rule
MANUAL      - A debarment created manually by a librarian

OVERDUE debarments are cleared automatically when all overdue items have been
returned.

Whenever a borrowers debarments are modified, the system updates the borrowers
debarment
fields with the highest expiration from all the borrowers debarments, and
concatenates
the comments from the debarments together.

Test plan:
 1) Apply patch
 2) Run updatedatabase.pl
 3) Run t/db_dependent/Borrower_Debarments.t
 4) Manually debar a patron, with an expiration date
 5) Verify the patron cannot be issued to
 6) Add another manual debarment with a different expiration date
 7) Verify the 'restricted' message lists the date farthest into the future
 8) Add another manual debarment with no expiration date
 9) Verify the borrower is now debarred indefinitely
10) Delete the indefinite debarment
11) Verify the debarment message lists an expiration date dagain
12) Set an overdue notice to debar after 1 day of being overdue
13) Check out an item to a patron and backdate the due date to yesterday
14) Run overdue_notices.pl
15) Verify the OVERDUES debarment was created
16) Return the item
17) Verify the OVERDUES debarment was removed
18) Add issuing rules so that an overdue item causes a temporary debarment
19) Check out an item to a patron and backdate the due date by a year
20) Return the item
21) Verify the SUSPENSION debarment was added to the patron

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


More information about the Koha-bugs mailing list