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