Bug 8231: display warning at check in if borrower is restricted
authorLyon3 Team <koha@univ-lyon3.fr>
Mon, 13 Jan 2014 11:09:01 +0000 (12:09 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 5 May 2014 00:41:32 +0000 (00:41 +0000)
commit16cd2996a484b2105d66043855c36d5e13a82987
tree521713b3af5538a5504db42e7418a5b77b7d6376
parentc221194a94d42d44057c33bfe47957dca15f3415
Bug 8231: display warning at check in if borrower is restricted

Display, at check in, a reminder of an already existing suspension date
even if the returned document is not late.

Test plan :
1) Apply the patch
2) Go to a borrower checkout page and checkout some documents with
   different passed duedate using "Specify due date" function. Checkout out
   one with the default duedate.
3) Check in the document with the bigger delay :
   You will get the message : 'X is now restricted until ...'
4) Check in one of the document with a smaller delay :
   You'll get a different message : 'Reminder : Patron was earlier
   restricted until...'.
5) Check in the document which is not late :
   You 'll get the same message as the previous one

Signed-off-by: JMBroust <jean-manuel.broust@univ-lyon2.fr>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/Circulation.pm
circ/returns.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt