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