From 69af8a8aa6fe3885dd158e2fb423d69bd859ef2c Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 26 Mar 2015 08:40:36 -0400 Subject: [PATCH] Bug 13915 - Inventory tool no longer hides items with date last seen greater than the inventory date In previous versions of Koha, selecting an inventory date would filter out items that had been seen since the "Inventory date". Bug 12631 changed the inventory tool so that this behavior only occurs when a barcodes list file is uploaded for comparison. Test Plan: 1) Apply this patch 2) Run the inventory tool with no set parameters 3) Mark the first item as seen 4) Rerun the tool with only a date last seen parameter of yesterday 5) Note the item you marked as seen is no longer on the list --- tools/inventory.pl | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/tools/inventory.pl b/tools/inventory.pl index b8cc31d..8987261 100755 --- a/tools/inventory.pl +++ b/tools/inventory.pl @@ -232,9 +232,7 @@ if ( $markseen or $op ) { # retrieve all items in this range. my $totalrecords; - # We use datelastseen only when comparing the results to the barcode file. - my $paramdatelastseen = ($compareinv2barcd) ? $datelastseen : ''; - ($inventorylist, $totalrecords) = GetItemsForInventory($minlocation, $maxlocation, $location, $itemtype, $ignoreissued, $paramdatelastseen, $branchcode, $branch, 0, undef, $staton); + ($inventorylist, $totalrecords) = GetItemsForInventory($minlocation, $maxlocation, $location, $itemtype, $ignoreissued, $datelastseen, $branchcode, $branch, 0, undef, $staton); # For the items that may be marked as "wrong place", we only check the location (callnumbers, location and branch) ($wrongplacelist, $totalrecords) = GetItemsForInventory($minlocation, $maxlocation, $location, undef, undef, undef, $branchcode, $branch, 0, undef, undef); -- 1.7.2.5