Bug 16990: Display branch names instead of code in patron mod requests
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / printfeercpt.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Print Receipt for [% cardnumber %]</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7 <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
8 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/printreceiptinvoice.css" />
9 [% INCLUDE 'slip-print.inc' #printThenClose %]
10 </head>
11 <body id="pat_printfeercpt" class="pat" onload="printThenClose();">
12
13 <div id="receipt">
14 <!-- The table with the account items -->
15 <table>
16 [% IF ( LibraryName ) %]
17  <tr>
18         <th colspan=3 class="centerednames">
19                 <h3>[% LibraryName %]</h3>
20         </th>
21  </tr>
22 [% END %]
23  <tr>
24         <th colspan=3 class="centerednames">
25         <h2><u>Fee receipt</u></h2>
26         </th>
27  </tr>
28  <tr>
29         <th colspan=3 class="centerednames">
30                 [% IF ( branchname ) %]<h2>[% branchname %]</h2>[% END %]
31         </th>
32  </tr>
33  <tr>
34         <th colspan=3 >
35                 Received with thanks from  [% firstname %] [% surname %] <br />
36         Card number : [% cardnumber %]<br />
37         </th>
38  </tr>
39   <tr>
40         <th>Date</th>
41     <th>Description of charges</th>
42     <th>Amount</th>
43  </tr>
44
45   [% FOREACH account IN accounts %]
46 <tr class="highlight">
47       <td>[% account.date | $KohaDates %]</td>
48       <td>
49         [% SWITCH account.accounttype %]
50           [% CASE 'Pay' %]Payment, thanks
51           [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
52           [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
53           [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
54           [% CASE 'N' %]New Card
55           [% CASE 'F' %]Fine
56           [% CASE 'A' %]Account management fee
57           [% CASE 'M' %]Sundry
58           [% CASE 'L' %]Lost Item
59           [% CASE 'W' %]Writeoff
60           [% CASE %][% account.accounttype %]
61         [%- END -%]
62         [%- IF account.description %], [% account.description %][% END %]
63       </td>
64       [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
65     </tr>
66
67   [% END %]
68 <tfoot>
69   <tr>
70     <td colspan="2">Total outstanding dues as on date : </td>
71     [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
72   </tr>
73   </tfoot>
74 </table>
75 </div>
76 [% INCLUDE 'intranet-bottom.inc' %]