From 2620bd63e7d1798d6879a5385d0904966d9f89a8 Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Fri, 2 Feb 2018 11:48:30 +1300 Subject: [PATCH] Bug 19457: If CheckPrevCheckout is set to Do, then checkouts are blocked at the SIPServer To test: Set CheckPrevCheckout to Do, or Do, with confirmation Verify the SIP server is blocking checkouts with this setting set Apply this patch Note that the checkout is now allowed, with a screen message telling the borrower they've issued the item before.y Signed-off-by: Colin Campbell --- C4/SIP/ILS/Transaction/Checkout.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/C4/SIP/ILS/Transaction/Checkout.pm b/C4/SIP/ILS/Transaction/Checkout.pm index eabe1cde89..78cf321a6c 100644 --- a/C4/SIP/ILS/Transaction/Checkout.pm +++ b/C4/SIP/ILS/Transaction/Checkout.pm @@ -96,6 +96,13 @@ sub do_checkout { $noerror = 0; last; } + } elsif ( + $confirmation eq 'PREVISSUE' + && ( C4::Context->preference('CheckPrevCheckout') eq "softyes" + || C4::Context->preference('CheckPrevCheckout') eq "hardyes" ) + ) { + $self->screen_msg("This item was previously checked out by you"); + last; } else { # We've been returned a case other than those above $self->screen_msg("Item cannot be issued: $confirmation"); -- 2.14.3