Bug 19487: Do not return an item if not checked out
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 18 Oct 2017 16:59:56 +0000 (13:59 -0300)
committerKatrin Fischer <katrin.fischer.83@web.de>
Mon, 20 Nov 2017 21:26:00 +0000 (22:26 +0100)
commit2e2fda1e86852892c2e89e93276a794b81a9a76f
tree7271cecb4ade22467ed588312b556f4d84dc6961
parenta1d08a7dfcb141c5fa95badd54a2da7bd47e0f2a
Bug 19487: Do not return an item if not checked out

To recreate:
1 - Manually add a lost fine to a ptron and include a barcode
2 - Attempt to write off the fine
3 - Internal server error
4 - Checkout an item and mark lost to checkin and fine
5 - Attempt to write off line
6 - Internal server error

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 7b5c1fce5880f8592c5a9dbd40614a760bb2607e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 243009bc9a07f89adbe14a4c8f35df85030f3dab)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
C4/Circulation.pm