Bug 19641: Move patron templates to the footer
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / printinvoice.tt
1 [% USE Koha %]
2 [% SET footerjs = 1 %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Print receipt for [% cardnumber %]</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/printreceiptinvoice_[% KOHA_VERSION %].css" />
7 </head>
8
9 <body id="printinvoice" class="pat">
10
11 <div id="receipt">
12 <!-- The table with the account items -->
13 <table>
14 [% IF ( LibraryName ) %]
15   <tr>
16     <th colspan="5" class="centerednames">
17                 <h3>[% LibraryName %]</h3>
18         </th>
19   </tr>
20 [% END %]
21   <tr>
22     <th colspan="5" class="centerednames">
23                 <h2><u>INVOICE</u></h2>
24         </th>
25   </tr>
26   <tr>
27     <th colspan="5" class="centerednames">
28                 [% IF ( branchname ) %]<h2>[% branchname %]</h2>[% END %]
29         </th>
30   </tr>
31   <tr>
32     <th colspan="5" >
33         Bill to: [% 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>Note</th>
41     <th style="text-align:right;">Amount</th>
42     <th style="text-align:right;">Amount outstanding</th>
43  </tr>
44
45   [% FOREACH account IN accounts %]
46 <tr class="highlight">
47       <td>[% account.date %]</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       <td>[% account.note %]</td>
65       [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
66       [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding %]</td>
67     </tr>
68
69   [% END %]
70 <tfoot>
71   <tr>
72     <td colspan="4">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
79 [% MACRO jsinclude BLOCK %]
80     [% INCLUDE 'slip-print.inc' #printThenClose %]
81 [% END %]
82
83 [% INCLUDE 'intranet-bottom.inc' %]