Bug 11014 - Slip Print Problem in Chrome
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / printinvoice.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Print Receipt for [% cardnumber %]</title>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
6 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/printreceiptinvoice.css" />
7 [% INCLUDE 'slip-print.inc' #printThenClose %]
8 </head>
9 <body id="printinvoice" class="pat" onload="printThenClose();">
10
11 <div id="receipt">
12 <!-- The table with the account items -->
13 <table>
14 [% IF ( LibraryName ) %]
15   <tr>
16     <th colspan="4" class="centerednames">
17                 <h3>[% LibraryName %]</h3>
18         </th>
19   </tr>
20 [% END %]
21   <tr>
22     <th colspan="4" class="centerednames">
23                 <h2><u>INVOICE</u></h2>
24         </th>
25   </tr>
26   <tr>
27     <th colspan="4" class="centerednames">
28                 [% IF ( branchname ) %]<h2>[% branchname %]</h2>[% END %]
29         </th>
30   </tr>
31   <tr>
32     <th colspan="4" >
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 style="text-align:right;">Amount</th>
41     <th style="text-align:right;">Amount outstanding</th>
42  </tr>
43
44   [% FOREACH account IN accounts %]
45 <tr class="highlight">
46       <td>[% account.date %]</td>
47       <td>[% account.description %]</td>
48       [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
49       [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding %]</td>
50     </tr>
51
52   [% END %]
53 <tfoot>
54   <tr>
55     <td colspan="3">Total outstanding dues as on date: </td>
56     [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
57   </tr>
58   </tfoot>
59 </table>
60 </div>
61 [% INCLUDE 'intranet-bottom.inc' %]