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