From 1ce89da01676df55190f4db9a66958136738db8f Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 26 Mar 2015 08:40:36 -0400 Subject: [PATCH] [Signed-off] Bug 13915 - Inventory tool no longer hides items with date last seen greater than the inventory date MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Followed test plan. Works as expected. Signed-off-by: Marc VĂ©ron --- tools/inventory.pl | 4 +--- 1 file changed, 1 insertion(+), 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.10.4