9 [% PROCESS 'accounts.inc' %]
11 [% INCLUDE 'doc-head-open.inc' %]
12 <title>Print receipt for [% patron.cardnumber | html %]</title>
13 [% INCLUDE 'doc-head-close.inc' %]
14 [% Asset.css("css/printreceiptinvoice.css") | $raw %]
17 <body id="printinvoice" class="pat">
20 <!-- The table with the account items -->
22 [% IF ( LibraryName ) %]
24 <th colspan="5" class="centerednames">
25 <h3>[% LibraryName | html %]</h3>
30 <th colspan="5" class="centerednames">
31 <h2><u>INVOICE</u></h2>
35 <th colspan="5" class="centerednames">
36 <h2>[% Branches.GetName( patron.branchcode ) | html %]</h2>
41 Bill to: [% patron.firstname | html %] [% patron.surname | html %] <br />
42 Card number: [% patron.cardnumber | html %]<br />
47 <th>Description of charges</th>
49 <th style="text-align:right;">Amount</th>
50 <th style="text-align:right;">Amount outstanding</th>
53 [% FOREACH account IN accounts %]
54 <tr class="highlight">
55 <td>[% account.date | $KohaDates%]</td>
57 [% PROCESS account_type_description account=account %]
58 [%- IF account.description %], [% account.description | html %][% END %]
60 <td>[% account.note | html %]</td>
61 [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount | $Price %]</td>
62 [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding | $Price %]</td>
68 <td colspan="4">Total outstanding dues as on date: </td>
69 [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total | $Price %]</td>
75 [% MACRO jsinclude BLOCK %]
76 [% INCLUDE 'slip-print.inc' #printThenClose %]
79 [% INCLUDE 'intranet-bottom.inc' %]