Bug 34032: Use reserves.patron_expiration_date if set
authorEmmi Takkinen <emmi.takkinen@koha-suomi.fi>
Mon, 6 Nov 2023 12:31:03 +0000 (14:31 +0200)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 29 Apr 2024 07:35:38 +0000 (09:35 +0200)
commitdb68d585928a8227955c62d7aca803951ba46d84
tree2b3462fa1f442723f50c9e8b37fb4b147a253175
parent03efe5ba76c80b9ed64de58d292155053a80c012
Bug 34032: Use reserves.patron_expiration_date if set

If reserves.patron_expiration_date is set use it as holds
expiration date when waiting status is reverted.

To test:
1. Apply this patch.
2. Add hold for patron A and set expiration date manually.
3. Check in item on hold for patron A and confirm hold was
set as waiting.
4. Revert holds waiting status.
=> Hold should still have expiration date you set manually
in step 2.
5. Check that you have DefaultHoldExpirationdate and other
DefaultHold sysprefs set.
6. Add hold for patron B, but this time do not set expiration
date.
7. Check in item on hold for patron B, revert waiting status.
=> Hold should now have expiration date set based on
DefaultHold sysprefs.

Also prove t/db_dependent/Hold.t.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Esther <esther@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/Hold.pm
t/db_dependent/Hold.t