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() {
13 <body id="printinvoice" class="pat" onload="printThenClose();">
16 <!-- The table with the account items -->
18 [% IF ( LibraryName ) %]
20 <th colspan="4" class="centerednames">
21 <h3>[% LibraryName %]</h3>
26 <th colspan="4" class="centerednames">
27 <h2><u>INVOICE</u></h2>
31 <th colspan="4" class="centerednames">
32 [% IF ( branchname ) %]<h2>[% branchname %]</h2>[% END %]
37 Bill to: [% firstname %] [% surname %] <br />
38 Card number: [% cardnumber %]<br />
43 <th>Description of charges</th>
44 <th style="text-align:right;">Amount</th>
45 <th style="text-align:right;">Amount outstanding</th>
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>
59 <td colspan="3">Total outstanding dues as on date: </td>
60 [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
65 [% INCLUDE 'intranet-bottom.inc' %]