Bug 14368: Add discharges history.
authorMatthias Meusburger <matthias.meusburger@biblibre.com>
Tue, 9 Jun 2015 12:35:07 +0000 (14:35 +0200)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Mon, 28 Sep 2015 14:56:33 +0000 (11:56 -0300)
commitc34c8ee853c4ec6a457c5ae8f75729507e242207
treea4743a3376a330604324c25b912a5ebabccbced5
parent67fa231a74426197b4a78f7d7620be2edff08f31
Bug 14368: Add discharges history.

Currently, once a user is discharged, lifting the discharge debarment does
not allow the user to ask for a discharge again.

This patch adds the ability for a user to be discharged several times and to
keep an history of the discharges.

Test plan:

 - As a user, ask for a discharge.
 - As a librarian, allow the discharge.
 - Check that the requested and validated dates appear on the discharge panel of the borrower in the admin interface.
 - Lift the discharge debarment of the user.
 - Check that you can repeat these steps and that the new discharges are added in the discharge panel of the borrower in the admin interface.

Please note that you will need to run misc/devel/update_dbix_class_files.pl after the SQL update.
Adding a primary key to the discharges table was mandatory for DBIX::Class to be able to query with order_by.

Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
Koha/Borrower/Discharge.pm
installer/data/mysql/atomicupdate/bug_14368_Add_discharges_history.sql [new file with mode: 0644]
installer/data/mysql/kohastructure.sql
koha-tmpl/intranet-tmpl/prog/en/modules/members/discharge.tt
members/discharge.pl
opac/opac-discharge.pl
t/db_dependent/Borrower_Discharge.t