6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Print receipt for [% patron.cardnumber %]</title>
8 [% INCLUDE 'doc-head-close.inc' %]
9 [% Asset.css("css/printreceiptinvoice.css") %]
12 <body id="printinvoice" class="pat">
15 <!-- The table with the account items -->
17 [% IF ( LibraryName ) %]
19 <th colspan="5" class="centerednames">
20 <h3>[% LibraryName %]</h3>
25 <th colspan="5" class="centerednames">
26 <h2><u>INVOICE</u></h2>
30 <th colspan="5" class="centerednames">
31 <h2>[% Branches.GetName( patron.branchcode ) %]</h2>
36 Bill to: [% patron.firstname %] [% patron.surname %] <br />
37 Card number: [% patron.cardnumber %]<br />
42 <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 | $KohaDates%]</td>
52 [% SWITCH account.accounttype %]
53 [% CASE 'Pay' %]Payment, thanks
54 [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
55 [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
56 [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
57 [% CASE 'N' %]New Card
59 [% CASE 'A' %]Account management fee
61 [% CASE 'L' %]Lost Item
62 [% CASE 'W' %]Writeoff
63 [% CASE %][% account.accounttype %]
65 [%- IF account.description %], [% account.description %][% END %]
67 <td>[% account.note %]</td>
68 [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
69 [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding %]</td>
75 <td colspan="4">Total outstanding dues as on date: </td>
76 [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
82 [% MACRO jsinclude BLOCK %]
83 [% INCLUDE 'slip-print.inc' #printThenClose %]
86 [% INCLUDE 'intranet-bottom.inc' %]