Bug 16272: Automatically switch an on-site checkout to a regular checkout when checke...
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 21 Apr 2016 10:00:20 +0000 (11:00 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 9 Sep 2016 11:43:56 +0000 (11:43 +0000)
commite018b69dca6e702c4abd2fd58e6e99868eada9aa
tree6766558806523e6b7777b4b6c01c9805faf7eb4b
parentd57d09549eae73b425ce977ed1748f962d42c9e6
Bug 16272: Automatically switch an on-site checkout to a regular checkout when checked out

Use case: A patron checks some items out on-site and want to take it home.
To facilitate the librarian work the checkout is directly switched from
on-site to regular when checked out if the new pref SwitchOnSiteCheckouts is on.

Test plan:
0/ Let the new pref SwitchOnSiteCheckouts off
1/ Checkout one items to a patron and tick the "on-site checkout"
checkbox
2/ Check the same item out without ticking the "on-site checkout"
checkbox
=> You should get "This item can not be renewed, it's an on-site checkout"
3/ Switch the pref on
4/ Repeat 2
=> The on-site checkout should be automatically switched to a regular checkout

Sponsored-by: BULAC - http://www.bulac.fr/
Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr>
With small changes to apply to master.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Circulation.pm
circ/circulation.pl
installer/data/mysql/atomicupdate/bug_bulac1.sql [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
t/db_dependent/Circulation/SwitchOnSiteCheckouts.t [new file with mode: 0644]