Koha/t/db_dependent/Patron
Matthias Meusburger 5a31f88d52 Bug 26937: Add an optional delay to the CheckPrevCheckout syspref.
The CheckPrevCheckout allows to check a borrower's checkout history to see if
the current item has been checked out before.

This patch adds an optional syspref: CheckPrevCheckoutDelay

It allows to specify the maximum number of days since the last checkin
that will trigger CheckPrevCheckout's warning.

Test plan:

 - Apply the patch.

 - Set CheckPrevCheckout to "Do" and CheckPrevCheckoutDelay to n.

 - Checkout and check-in an item for a patron.

 - Try to checkout the same item.

 - Check that you have a warning:
   "Patron has previously checked out this title: Check out anyway?"

 - Update the returndate column from the old_issues table to have a returndate
   older than n days ago.

 - Try to checkout the same item.

 - Check that you don't have the warning.

 - Prove t/db_dependent/Patron/Borrower_PrevCheckout.t

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-03-01 15:14:22 +01:00
..
Borrower_Debarments.t Bug 26594: add Unit Test 2020-11-10 15:00:14 +01:00
Borrower_Discharge.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Borrower_Files.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Borrower_PrevCheckout.t Bug 26937: Add an optional delay to the CheckPrevCheckout syspref. 2021-03-01 15:14:22 +01:00
Housebound.t
HouseboundProfiles.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
HouseboundRoles.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
HouseboundVisits.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Messages.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Relationships.t Bug 22001: Remove the RaiseError occurrences from tests 2020-03-27 08:52:56 +00:00