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="8" class="centerednames">
25 <h3>[% LibraryName | html %]</h3>
30 <th colspan="8" class="centerednames">
31 <h2><u>INVOICE</u></h2>
35 <th colspan="8" 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>
52 <th style="text-align:right;">Amount</th>
53 <th style="text-align:right;">Amount outstanding</th>
56 [% FOREACH account IN accounts %]
57 <tr class="highlight">
58 <td>[% account.date | $KohaDates%]</td>
60 [% PROCESS account_type_description account=account %]
61 [%- IF account.description %], [% account.description | html %][% END %]
63 <td>[% account.item.barcode | html %]</td>
64 <td>[% account.issue.date_due | $KohaDates as_due_date => 1 %]</td>
65 <td>[% account.issue.returndate | $KohaDates with_hours => 1 %]</td>
66 <td>[% account.note | html %]</td>
67 [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount | $Price %]</td>
68 [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding | $Price %]</td>
74 <td colspan="7">Total outstanding dues as on date: </td>
75 [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total | $Price %]</td>
81 [% MACRO jsinclude BLOCK %]
82 [% INCLUDE 'slip-print.inc' #printThenClose %]
85 [% INCLUDE 'intranet-bottom.inc' %]