From c0392d881b0672c1b97e06df04f26806e48630e3 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 23 Sep 2022 10:12:22 +0200 Subject: [PATCH] Bug 31615: Allow checkin of items bundles without verifying their contents This patch adds a button in the "bundle verification" modal to skip this step and do the checkin anyway. Test plan: 1. Create an items bundle (see bug 28854 comment 458) 2. Check out this bundle, then return it. The "bundle verification" modal should appear 3. Leave the textarea empty and click on "Confirm checkin without verifying bundle contents" 4. Confirm that the bundle was correctly returned, and no items were marked as lost Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- circ/returns.pl | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/circ/returns.pl b/circ/returns.pl index 2c2bea8aa8..08d8cbdc9b 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -419,7 +419,7 @@ if ($barcode) { } # Mark missing bundle items as lost and report unexpected items - if ( $item && $item->is_bundle && $query->param('confirm_items_bundle_return') ) { + if ( $item && $item->is_bundle && $query->param('confirm_items_bundle_return') && !$query->param('do_not_verify_items_bundle_contents') ) { my $BundleLostValue = C4::Context->preference('BundleLostValue'); my $barcodes = $query->param('verify-items-bundle-contents-barcodes'); my @barcodes = map { s/^\s+|\s+$//gr } ( split /\n/, $barcodes ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 7596356df6..67ad08fbaa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -510,6 +510,7 @@ [% END %] [% IF item.onloan %] + [% ELSE %] [% END %] -- 2.39.5