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="[% interface %]/[% theme %]/css/printreceiptinvoice.css" />
7 [% INCLUDE 'slip-print.inc' #printThenClose %]
9 <body id="printinvoice" class="pat" onload="printThenClose();">
12 <!-- The table with the account items -->
14 [% IF ( LibraryName ) %]
16 <th colspan="5" class="centerednames">
17 <h3>[% LibraryName %]</h3>
22 <th colspan="5" class="centerednames">
23 <h2><u>INVOICE</u></h2>
27 <th colspan="5" class="centerednames">
28 [% IF ( branchname ) %]<h2>[% branchname %]</h2>[% END %]
33 Bill to: [% firstname %] [% surname %] <br />
34 Card number: [% cardnumber %]<br />
39 <th>Description of charges</th>
41 <th style="text-align:right;">Amount</th>
42 <th style="text-align:right;">Amount outstanding</th>
45 [% FOREACH account IN accounts %]
46 <tr class="highlight">
47 <td>[% account.date %]</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
56 [% CASE 'A' %]Account management fee
58 [% CASE 'L' %]Lost Item
59 [% CASE 'W' %]Writeoff
60 [% CASE %][% account.accounttype %]
62 [%- IF account.description %], [% account.description %][% END %]
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>
72 <td colspan="4">Total outstanding dues as on date: </td>
73 [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
78 [% INCLUDE 'intranet-bottom.inc' %]