]> git.koha-community.org Git - koha.git/commit
Bug 14280: Add branches fields to discharges letters
authorMatthias Meusburger <matthias.meusburger@biblibre.com>
Wed, 27 May 2015 09:52:10 +0000 (11:52 +0200)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Thu, 11 Jun 2015 16:12:32 +0000 (13:12 -0300)
commitcc7b795f840e671e9ed14e2833881d18630e3ce6
treeb17af53ca788438475cc031bb8ca51023019177d
parent83da81e0ce2116bbcfd6581a58e3f50dbbfcc3f1
Bug 14280: Add branches fields to discharges letters

Currently, when generating a discharge letter, branches fields are not translated in the letter (<<branches.branchname>>, <<branches.branchaddress1>>, etc.)
This patch fixes that.

How I tested:
- Set syspref 'useDischarge' to 'allow'
- Go to Home > Tools > Notices & Slips
- Edit DISCHARGE, add to 'Email message':
<p><<branches.branchname>><br />
<<branches.branchaddress1>><br />
<<branches.branchaddress2>><br />
<<branches.branchaddress3>><br />
<<branches.zip>> <<branches.city>><br />
</p>
- Go to detail page of a patron > discharge
- Click 'Generate discharge'
- Verify that the PDF contains the information above.

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
Koha/Borrower/Discharge.pm
members/discharge.pl
opac/opac-discharge.pl