From bcfc9941570647f9bb297e1e20c52d35c54e3211 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 12 Sep 2018 09:38:39 -0700 Subject: [PATCH] Bug 19457: Handle 'PREVISSUE' return by CanBookBeIssued from SIP (CheckPrevCheckout) If CheckPrevCheckout is set to Do, then checkouts are blocked at the SIPServer To test: - Do not apply this patch - Set CheckPrevCheckout to "Do", or "Unless overridden, do" 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. --- C4/SIP/ILS/Transaction/Checkout.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/C4/SIP/ILS/Transaction/Checkout.pm b/C4/SIP/ILS/Transaction/Checkout.pm index 23cdec92c4..27915ad484 100644 --- a/C4/SIP/ILS/Transaction/Checkout.pm +++ b/C4/SIP/ILS/Transaction/Checkout.pm @@ -97,6 +97,9 @@ sub do_checkout { $noerror = 0; last; } + } elsif ($confirmation eq 'PREVISSUE') { + $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.11.0