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