@@ -, +, @@ wrong. --------- 1) create new branch based on master 2) apply this patch 3) make sure you have the barcode of something in your inventory. or add it accordingly. 4) Create a dummy barcode file with that barcode. 5) Home -> Tools -> Inventory/stocktaking 6) Browse for that file 7) Click the 'Compare barcodes list to results:' checkbox. 8) Click the 'Submit' button. 9) Check the koha error log. -- Errors being looked for are like: --- tools/inventory.pl | 4 ++++ 1 file changed, 4 insertions(+) --- a/tools/inventory.pl +++ a/tools/inventory.pl @@ -281,6 +281,8 @@ if ( $compareinv2barcd ) { foreach my $item ( @$inventorylist ) { my $cdls = output_pref( { dt => dt_from_string( $_->{datelastseen} ), dateformat => 'iso' } ); + print STDERR "\$_ VERSION: " . $_->{datelastseen} . "\n"; + print STDERR "\$item VERSION: " . $item->{datelastseen} . "\n"; if ( $cdls lt $dls ) { $item->{problem} = 'missingitem'; # We have to push a copy of the item, not the reference @@ -326,6 +328,8 @@ foreach my $item ( @scanned_items ) { } # Modify date last seen for scanned items + print STDERR "\$_ VERSION (MOD): " . $_->{'itemnumber'} . "\n"; + print STDERR "\$item VERSION (MOD): " . $item->{'itemnumber'} . "\n"; ModDateLastSeen($_->{'itemnumber'}); $moddatecount++; } --