Bug 25227: Display correct message if item is lost and lost returns are allowed
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 21 Apr 2020 11:11:08 +0000 (07:11 -0400)
committerJoy Nelson <joy@bywatersolutions.com>
Fri, 8 May 2020 22:00:04 +0000 (22:00 +0000)
commite939e0e0dc4ec189fae8e863d5296eb60b36fc36
tree3fa5557f863b76b46063cd7f3d1a773cacd41b8f
parentd04c97b2d78bbb3366a584fea87b372fd16c199d
Bug 25227: Display correct message if item is lost and lost returns are allowed

Even if a library allows returns of lost items, the SIP server returns the error message "Item lost, return not allowed" if the checkin was not ok for any reason other than it being withdrawn ( and withdrawn items not being returnable ).

The most clear example of this is that when a lost item is not checked out to a patron and is returned. SIP returns that message even though lost items *can* be returned. The actual problem being that the item was not checked out.

Test Plan:
1) Ensure you can return lost items
2) Mark an item as lost
3) Check it in via SIP
4) Note the message you get back is "Item lost, return not allowed"
5) Apply this patch
6) Restart your SIP server
7) Repeat steps 2 and 3
8) Note you no longer get the incorrect message!

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
C4/SIP/ILS.pm