Bug 3387 - WITHDRAWN items shouldn't check in
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 17 Jul 2012 13:42:59 +0000 (09:42 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 1 Oct 2012 15:07:53 +0000 (17:07 +0200)
commit7a7e018ed357f0af3fa0b3b3331ea7390c067a3d
tree67716b4ddfb57a1996872f6a216573df98af2a4e
parenteba713b5839c4ee377923deecca97837edd7f404
Bug 3387 - WITHDRAWN items shouldn't check in

Adds a system preference BlockReturnOfWithdrawnItems to control
whether or not Koha should allow a withdrawn item to be returned
or not.

Also fixes the behavior where Koha will attempt to use a withdrawn
item to fill a hold.

Test Plan:
1) Set BlockReturnOfWithdrawnItems to "Block" ( this is the default )
2) Check an item out to a patron
3) Mark item as withdrawn
4) Attempt to return the item, you should still see the item on the
   borrower's record
5) Set BlockReturnOfWithdrawnItems to "Don't Block"
6) Attempt to return the item, you should see the item is no longer
   on the borrower's record.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
C4/Circulation.pm
circ/returns.pl
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt