]> git.koha-community.org Git - koha.git/commit
Bug 25566: Add option to ignore found holds and use it when checking high holds
authorNick Clemens <nick@bywatersolutions.com>
Thu, 21 May 2020 13:41:23 +0000 (13:41 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 16 Jul 2020 14:32:18 +0000 (15:32 +0100)
commit96a871035043c7ffd93c61e756ee1ff89e3da0f0
tree600b5ac71c2f4d9b33433f2fb4d1305cc8ad0b18
parent92970a9abad312a07d9efba46cc57b27469a0509
Bug 25566: Add option to ignore found holds and use it when checking high holds

To test:
 1 - Find or create a record with 10 items
 2 - Set sysprefs:
     decreaseLoanHighHolds - enable
     decreaseLoanHighHoldsDuration - 2
     decreaseLoanHighHoldsValue - 2
     decreaseLoanHighHoldsControl  - 'over the number of holdable items'/dynamic
 3 - Set circ rules to allow 1 hold per record on the relevant record
 4 - Place 3 holds on the record
 5 - Check one item in and confirm hold to set to waiting
 6 - Issue to the patron with the waiting hold
 7 - Get a notice that loan period is decreased
 8 - Don't confirm the checkout
 9 - Apply patch
10 - Restart all the things
11 - Repeat checkout, no decrease this time!

Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Circulation.pm
C4/Reserves.pm
t/db_dependent/DecreaseLoanHighHolds.t
t/db_dependent/Reserves/MultiplePerRecord.t