Bug 5670: [QA Followup] HouseboundRole CRUD from UI.
[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=4 class="centerednames">
19                 <h3>[% LibraryName %]</h3>
20         </th>
21  </tr>
22 [% END %]
23  <tr>
24     <th colspan=4 class="centerednames">
25         <h2><u>Fee receipt</u></h2>
26         </th>
27  </tr>
28  <tr>
29     <th colspan=4 class="centerednames">
30                 [% IF ( branchname ) %]<h2>[% branchname %]</h2>[% END %]
31         </th>
32  </tr>
33  <tr>
34     <th colspan=4 >
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>Note</th>
43     <th>Amount</th>
44  </tr>
45
46   [% FOREACH account IN accounts %]
47 <tr class="highlight">
48       <td>[% account.date | $KohaDates %]</td>
49       <td>
50         [% SWITCH account.accounttype %]
51           [% CASE 'Pay' %]Payment, thanks
52           [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
53           [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
54           [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
55           [% CASE 'N' %]New Card
56           [% CASE 'F' %]Fine
57           [% CASE 'A' %]Account management fee
58           [% CASE 'M' %]Sundry
59           [% CASE 'L' %]Lost Item
60           [% CASE 'W' %]Writeoff
61           [% CASE %][% account.accounttype %]
62         [%- END -%]
63         [%- IF account.description %], [% account.description %][% END %]
64       </td>
65       <td>[% account.note %]</td>
66       [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
67     </tr>
68
69   [% END %]
70 <tfoot>
71   <tr>
72     <td colspan="3">Total outstanding dues as on date : </td>
73     [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
74   </tr>
75   </tfoot>
76 </table>
77 </div>
78 [% INCLUDE 'intranet-bottom.inc' %]