Bug 20249: (bug 18789 follow-up) "Patron has no outstanding fines" now appears alongs...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / printinvoice.tt
1 [% USE Koha %]
2 [% USE Branches %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Print receipt for [% patron.cardnumber %]</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/printreceiptinvoice_[% KOHA_VERSION %].css" />
8 </head>
9
10 <body id="printinvoice" class="pat">
11
12 <div id="receipt">
13 <!-- The table with the account items -->
14 <table>
15 [% IF ( LibraryName ) %]
16   <tr>
17     <th colspan="5" class="centerednames">
18                 <h3>[% LibraryName %]</h3>
19         </th>
20   </tr>
21 [% END %]
22   <tr>
23     <th colspan="5" class="centerednames">
24                 <h2><u>INVOICE</u></h2>
25         </th>
26   </tr>
27   <tr>
28     <th colspan="5" class="centerednames">
29         <h2>[% Branches.GetName( patron.branchcode ) %]</h2>
30         </th>
31   </tr>
32   <tr>
33     <th colspan="5" >
34         Bill to: [% patron.firstname %] [% patron.surname %] <br />
35         Card number: [% patron.cardnumber %]<br />
36         </th>
37   </tr>
38   <tr>
39         <th>Date</th>
40     <th>Description of charges</th>
41     <th>Note</th>
42     <th style="text-align:right;">Amount</th>
43     <th style="text-align:right;">Amount outstanding</th>
44  </tr>
45
46   [% FOREACH account IN accounts %]
47 <tr class="highlight">
48       <td>[% account.date %]</td>
49        <td>
50         [% SWITCH account.accounttype %]
51           [% CASE 'Pay' %]Payment, thanks
52           [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
53           [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
54           [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
55           [% CASE 'N' %]New Card
56           [% CASE 'F' %]Fine
57           [% CASE 'A' %]Account management fee
58           [% CASE 'M' %]Sundry
59           [% CASE 'L' %]Lost Item
60           [% CASE 'W' %]Writeoff
61           [% CASE %][% account.accounttype %]
62         [%- END -%]
63         [%- IF account.description %], [% account.description %][% END %]
64       </td>
65       <td>[% account.note %]</td>
66       [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
67       [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding %]</td>
68     </tr>
69
70   [% END %]
71 <tfoot>
72   <tr>
73     <td colspan="4">Total outstanding dues as on date: </td>
74     [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
75   </tr>
76   </tfoot>
77 </table>
78 </div>
79
80 [% MACRO jsinclude BLOCK %]
81     [% INCLUDE 'slip-print.inc' #printThenClose %]
82 [% END %]
83
84 [% INCLUDE 'intranet-bottom.inc' %]