Bug 8007: Discharge management
authorYohann Dufour <dufour.yohann@gmail.com>
Mon, 4 Aug 2014 14:09:42 +0000 (16:09 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 30 Apr 2015 15:33:56 +0000 (12:33 -0300)
commit9ad589189e83aff432d2133a0192765f5e99d5ce
tree36fa8142573972f457cedaa34637c13d8f9c3595
parent45975f4087462d3b2ae06bca11fe70ae0127db3a
Bug 8007: Discharge management

This patch is the main patch. It adds new package and files for the new
pages (opac-discharge, members/discharge and members/discharges).

At the intranet, it is now possible to generate a discharge for a patron.
At the opac, a patron can request a discharge and a discharge if it has
been validated by a librarian.

Requirements:
    The perl module PDF::FromHTML

New sysprefs:
 - useDischarge: Allows librarians to discharge borrowers and borrowers
   to request a discharge

New letter with a letter_code DISCHARGE.

Test plan:
- Switch on the syspref useDischarge.
- Verify a new tab appears in the patron page (intranet and opac).
- Verify the discharge cannot be generated if the patron has issues.
- Verify the patron can request a discharge from it's opac area.
- The request appears on the main page (intranet).
- Generate the discharge from the intranet.
- Try to download it (from the opac and the intranet).

Signed-off-by: Lucie <lucie.rousseaux@dracenie.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Koha/Borrower/Discharge.pm [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/members/discharge.tt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/members/discharges.tt [new file with mode: 0644]
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-discharge.tt [new file with mode: 0644]
members/discharge.pl [new file with mode: 0755]
members/discharges.pl [new file with mode: 0755]
opac/opac-discharge.pl [new file with mode: 0755]