From 38cb1774364f6fd5a9a23dd175bc978dfec20afd Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 13 Aug 2020 16:23:25 +0100 Subject: [PATCH] Bug 25261: (QA follow-up) Catch check in SIP Checkout Test plan 1/ Enable the feature as per previous patches 2/ Attempt to checkout an item with materials attached via a SIP unit 3/ Note that the checkut is blocked with the message 'Item must be issued at a circulation desk' 4/ Signoff Signed-off-by: Martin Renvoize --- C4/SIP/ILS/Transaction/Checkout.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/C4/SIP/ILS/Transaction/Checkout.pm b/C4/SIP/ILS/Transaction/Checkout.pm index 01aa8fbc60..84fa15f4be 100644 --- a/C4/SIP/ILS/Transaction/Checkout.pm +++ b/C4/SIP/ILS/Transaction/Checkout.pm @@ -93,9 +93,13 @@ sub do_checkout { $noerror = 0; last; } - } elsif ($confirmation eq 'PREVISSUE') { + } elsif ($confirmation eq 'PREVISSUE') { $self->screen_msg("This item was previously checked out by you"); last; + } elsif ( $confirmation eq 'ADDITIONAL_MATERIALS' ) { + $self->screen_msg('Item must be issued at a circulation desk'); + $noerror = 0; + last; } else { # We've been returned a case other than those above $self->screen_msg("Item cannot be issued: $confirmation"); -- 2.20.1