]> git.koha-community.org Git - koha.git/commit
Bug 25167: Fix to a fix wrong inventory results
authorDidier Gautheron <didier.gautheron@biblibre.com>
Wed, 8 Apr 2020 07:33:44 +0000 (09:33 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 16 Nov 2020 20:40:37 +0000 (20:40 +0000)
commitc724a3db1d83447459b488ee7911a821720a5da1
tree92ade5942eb72447752c794161b4a7aa7ed9e471
parentabff9a9cd8fb82bafe5bc38f44a030950fb6e86e
Bug 25167: Fix to a fix wrong inventory results

Test plan :
- Check you have in default framework an item subfield mapped with items.notforloan and with an authorized value catergory,
  for example 'NOTFORLOAN'
- Create a new value in this category, for example '9'
- Create a biblio with default framework
- Create an item with barcode='000AAA1', callnumber='A-1' and notforloan=0
- Create an item with barcode='000AAA2', callnumber='A-2' and notforloan=9
- Create a file 'barecodes.txt' containing 2 lines '000AAA1' and '000AAA2'
- Go to inventory tool : /cgi-bin/koha/tools/inventory.pl
- Choose file in 'Barcode file'
- Enter item callnumber between 'A-0' and 'A-9'
- Check 'Compare barcodes list to results'
- Submit=> without patch, you get no warnings
- Redo the same inventory but with checking items.notforloan 'For loan'
  (using the browser back page is ok)
- submit => still no warning, Bug 000AAA2 must be listed it's not 'For loan'
- Apply patch, repeat, with tems.notforloan 'For loan' checked you get the
  right warning

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 1181402eee9392fddf0e3a64de5941880485c074)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
tools/inventory.pl