Bug 12311: Do not return a lost item if modified in a batch
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 15 Sep 2015 10:44:32 +0000 (11:44 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 11 Oct 2015 20:53:06 +0000 (09:53 +1300)
commit6709813a022de5e2cc53730e0299259ed9dc53bd
treea1793eec66fc33d9775b157aa5f128787a274e08
parent12452be92e545bfe559215d96b17353829989426
Bug 12311: Do not return a lost item if modified in a batch

If a item is lost and issued, and you modify it in a batch, the item
will be marked as returned. It should only be returned if the item is
marked as lost.

Test plan:
1/ Check an item out and mark it as lost
2/ Edit it in a batch (tools/batchMod.pl) and edit a field (notes for
instance)
3/ The item should still be issued to the patron
4/ Edit it in a batch and edit the lost value, marked it as not lost
5/ The item should still be issued to the patron
6/ Edit it in a batch and edit the lost value, marked it as lost
7/ The item should have been returned.

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as advertised. Just one comment, lost status can be changed only if you change default framework to another framework then edit the item. If you change it in Item menu at left side of screen this will remove the item from patron’s checkouts and patron charged for lost item.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
For testing purposes the lost item field can be set to visible
in the framework used. That will allow changing it without
returning it at the same time.
The other option is using the longoverdues.pl script.
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>

(cherry picked from commit ca268ad877a6712aa07cb7c873c918d6fdfac52d)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
tools/batchMod.pl