From 313bf6125c657d5054ea0bb1f01f85a290c008c6 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 Signed-off-by: Katrin Fischer --- 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..12e5813b23 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