Merge branch 'new/bug11269'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / printinvoice.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Print Receipt for [% cardnumber %]</title>
3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4 <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
5 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/printreceiptinvoice.css" />
6 <script type="text/javascript">
7     function printThenClose() {
8         window.print();
9         window.close();
10     }
11 </script>
12 </head>
13 <body id="printinvoice" class="pat" onload="printThenClose();">
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>INVOICE</u></h2>
28         </th>
29   </tr>
30   <tr>
31     <th colspan="4" class="centerednames">
32                 [% IF ( branchname ) %]<h2>[% branchname %]</h2>[% END %]
33         </th>
34   </tr>
35   <tr>
36     <th colspan="4" >
37         Bill to: [% firstname %] [% surname %] <br />
38         Card number: [% cardnumber %]<br />
39         </th>
40   </tr>
41   <tr>
42         <th>Date</th>
43     <th>Description of charges</th>
44     <th style="text-align:right;">Amount</th>
45     <th style="text-align:right;">Amount outstanding</th>
46  </tr>
47
48   [% FOREACH account IN accounts %]
49 <tr class="highlight">
50       <td>[% account.date %]</td>
51       <td>[% account.description %]</td>
52       [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
53       [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding %]</td>
54     </tr>
55
56   [% END %]
57 <tfoot>
58   <tr>
59     <td colspan="3">Total outstanding dues as on date: </td>
60     [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
61   </tr>
62   </tfoot>
63 </table>
64 </div>
65 [% INCLUDE 'intranet-bottom.inc' %]