Merge branch 'bug_9265' into 3.12-master
[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 %][% themelang %]/includes/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=3 class="centerednames">
21                 <h3>[% LibraryName %]</h3>
22         </th>
23   </tr>
24 [% END %]
25   <tr>
26         <th colspan=3 class="centerednames">
27                 <h2><u>INVOICE</u></h2>
28         </th>
29   </tr>
30   <tr>
31         <th colspan=3 class="centerednames">
32                 [% IF ( branchname ) %]<h2>[% branchname %]</h2>[% END %]
33         </th>
34   </tr>
35   <tr>
36         <th colspan=3 >
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  </tr>
46
47   [% FOREACH account IN accounts %]
48 <tr class="highlight">
49       <td>[% account.date %]</td>
50       <td>[% account.description %]</td>
51       [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
52     </tr>
53
54   [% END %]
55 <tfoot>
56   <tr>
57     <td colspan="2">Total outstanding dues as on date: </td>
58     [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
59   </tr>
60   </tfoot>
61 </table>
62 </div>
63 [% INCLUDE 'intranet-bottom.inc' %]