Bug 19933: Remove patronflags - unused vars oldamount/amountold in circulation.pl
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / printinvoice.tt
1 [% USE Koha %]
2 [% USE Branches %]
3 [% USE KohaDates %]
4 [% SET footerjs = 1 %]
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" />
9 </head>
10
11 <body id="printinvoice" class="pat">
12
13 <div id="receipt">
14 <!-- The table with the account items -->
15 <table>
16 [% IF ( LibraryName ) %]
17   <tr>
18     <th colspan="5" class="centerednames">
19                 <h3>[% LibraryName %]</h3>
20         </th>
21   </tr>
22 [% END %]
23   <tr>
24     <th colspan="5" class="centerednames">
25                 <h2><u>INVOICE</u></h2>
26         </th>
27   </tr>
28   <tr>
29     <th colspan="5" class="centerednames">
30         <h2>[% Branches.GetName( patron.branchcode ) %]</h2>
31         </th>
32   </tr>
33   <tr>
34     <th colspan="5" >
35         Bill to: [% patron.firstname %] [% patron.surname %] <br />
36         Card number: [% patron.cardnumber %]<br />
37         </th>
38   </tr>
39   <tr>
40         <th>Date</th>
41     <th>Description of charges</th>
42     <th>Note</th>
43     <th style="text-align:right;">Amount</th>
44     <th style="text-align:right;">Amount outstanding</th>
45  </tr>
46
47   [% FOREACH account IN accounts %]
48 <tr class="highlight">
49       <td>[% account.date | $KohaDates%]</td>
50        <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
57           [% CASE 'F' %]Fine
58           [% CASE 'A' %]Account management fee
59           [% CASE 'M' %]Sundry
60           [% CASE 'L' %]Lost Item
61           [% CASE 'W' %]Writeoff
62           [% CASE %][% account.accounttype %]
63         [%- END -%]
64         [%- IF account.description %], [% account.description %][% END %]
65       </td>
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>
69     </tr>
70
71   [% END %]
72 <tfoot>
73   <tr>
74     <td colspan="4">Total outstanding dues as on date: </td>
75     [% IF ( totalcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% total %]</td>
76   </tr>
77   </tfoot>
78 </table>
79 </div>
80
81 [% MACRO jsinclude BLOCK %]
82     [% INCLUDE 'slip-print.inc' #printThenClose %]
83 [% END %]
84
85 [% INCLUDE 'intranet-bottom.inc' %]