Bug 5917 / Bug 6085 : Fixing not being able to change language
[koha.git] / koha-tt / intranet-tmpl / prog / en / modules / members / boraccount.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Patrons &rsaquo; Account for [% firstname %] [% surname %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body>
6 [% INCLUDE 'header.inc' %]
7 [% INCLUDE 'patron-search.inc' %]
8
9 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Account for [% firstname %] [% surname %]</div>
10
11 <div id="doc3" class="yui-t2">
12    
13    <div id="bd">
14         <div id="yui-main">
15         <div class="yui-b">
16 [% INCLUDE 'members-toolbar.inc' %]
17 <form action="/cgi-bin/koha/members/boraccount.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form>
18
19 <!-- The manual invoice and credit buttons -->
20 <div class="toptabs">
21 <ul class="ui-tabs-nav">
22         <li class="ui-tabs-selected"><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Account</a></li>
23         <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]" >Pay fines</a></li>
24         <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% borrowernumber %]" >Create manual invoice</a></li>
25         <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% borrowernumber %]" >Create manual credit</a></li>
26 </ul>
27 <div class="tabs-container">
28 <!-- The table with the account items -->
29 <table>
30   <tr>
31         <th>Date</th>
32     <th>Description of charges</th>
33     <th>Note</th>
34     <th>Amount</th>
35     <th>Outstanding</th>
36     [% IF ( reverse_col ) %]
37     <th>&nbsp;</th>
38     [% END %]
39     <th>Print</th>
40   </tr>
41
42         <!-- FIXME: Shouldn't hardcode dollar signs, since Euro or Pound might be needed -->
43   [% FOREACH account IN accounts %]
44
45    [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
46       <td>[% account.date %]</td>
47       <td>[% account.description %]&nbsp;[% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">View item</a>&nbsp;[% END %][% IF ( account.printtitle ) %] [% account.title |html %][% END %]</td>
48       <td>[% account.note %]</td>
49       [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
50       [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding %]</td>
51     [% IF ( account.reverse_col ) %]
52       <td>
53         [% IF ( account.payment ) %]
54                 <a href="boraccount.pl?action=reverse&amp;borrowernumber=[% account.borrowernumber %]&amp;accountno=[% account.accountno %]">Reverse</a>
55         [% ELSE %]
56                 &nbsp;
57         [% END %]
58       </td>
59         [% END %]
60 <td>
61         [% IF ( account.payment ) %]
62                 <a target="_blank" href="printfeercpt.pl?action=print&amp;borrowernumber=[% account.borrowernumber %]&amp;accountno=[% account.accountno %]">Print</a>
63         [% ELSE %]
64                 <a target="_blank" href="printinvoice.pl?action=print&amp;borrowernumber=[% account.borrowernumber %]&amp;accountno=[% account.accountno %]">Print</a>
65         [% END %]
66       </td>
67     </tr>
68
69   [% END %]
70 <tfoot>
71   <tr>
72     <td colspan="4">Total due</td>
73     [% IF ( totalcredit ) %]<td colspan="2" class="credit">[% ELSE %]<td colspan="2" class="debit">[% END %][% total %]</td>
74   </tr>
75   </tfoot>
76 </table>
77 </div></div>
78
79 </div>
80 </div>
81
82 <div class="yui-b">
83 [% INCLUDE 'circ-menu.inc' %]
84 </div>
85 </div>
86 [% INCLUDE 'intranet-bottom.inc' %]