5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Print receipt for [% patron.cardnumber %]</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/printreceiptinvoice_[% KOHA_VERSION %].css" />
11 <body id="printinvoice" class="pat">
14 <!-- The table with the account items -->
16 [% IF ( LibraryName ) %]
18 <th colspan="5" class="centerednames">
19 <h3>[% LibraryName %]</h3>
24 <th colspan="5" class="centerednames">
25 <h2><u>INVOICE</u></h2>
29 <th colspan="5" class="centerednames">
30 <h2>[% Branches.GetName( patron.branchcode ) %]</h2>
35 Bill to: [% patron.firstname %] [% patron.surname %] <br />
36 Card number: [% patron.cardnumber %]<br />
41 <th>Description of charges</th>
43 <th style="text-align:right;">Amount</th>
44 <th style="text-align:right;">Amount outstanding</th>
47 [% FOREACH account IN accounts %]
48 <tr class="highlight">
49 <td>[% account.date | $KohaDates%]</td>
51 [% SWITCH account.accounttype %]
52 [% CASE 'Pay' %]Payment, thanks
53 [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
54 [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
55 [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
56 [% CASE 'N' %]New Card
58 [% CASE 'A' %]Account management fee
60 [% CASE 'L' %]Lost Item
61 [% CASE 'W' %]Writeoff
62 [% CASE %][% account.accounttype %]
64 [%- IF account.description %], [% account.description %][% END %]
66 <td>[% account.note %]</td>
67 [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
68 [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding %]</td>
74 <td colspan="4">Total outstanding dues as on date: </td>
75 [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
81 [% MACRO jsinclude BLOCK %]
82 [% INCLUDE 'slip-print.inc' #printThenClose %]
85 [% INCLUDE 'intranet-bottom.inc' %]