Bug 7720: add options for controlling display of an item's home and/or holdings location
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / boraccount.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Patrons &rsaquo; Account for [% INCLUDE 'patron-title.inc' %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body id="pat_borraccount" class="pat">
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 [% INCLUDE 'patron-title.inc' %]</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="statictabs">
21 <ul>
22     <li class="active"><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>
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         &nbsp;[% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">View item</a>&nbsp;[% END %][% account.title |html %]</td>
63       <td>[% account.note | html_line_break %]</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     [% IF ( reverse_col ) %]
67       <td>
68         [% IF ( account.payment ) %]
69                 <a href="boraccount.pl?action=reverse&amp;accountlines_id=[% account.accountlines_id %]&amp;borrowernumber=[% account.borrowernumber %]">Reverse</a>
70         [% ELSE %]
71                 &nbsp;
72         [% END %]
73       </td>
74         [% END %]
75 <td>
76         [% IF ( account.payment ) %]
77                 <a target="_blank" href="printfeercpt.pl?action=print&amp;accountlines_id=[% account.accountlines_id %]&amp;borrowernumber=[% account.borrowernumber %]">Print</a>
78         [% ELSE %]
79                 <a target="_blank" href="printinvoice.pl?action=print&amp;accountlines_id=[% account.accountlines_id %]&amp;borrowernumber=[% account.borrowernumber %]">Print</a>
80         [% END %]
81       </td>
82     </tr>
83
84   [% END %]
85 <tfoot>
86   <tr>
87     <td colspan="4">Total due</td>
88     [% IF ( totalcredit ) %]
89       [% IF ( reverse_col ) %]
90         <td colspan="3" class="credit">
91       [% ELSE %]
92         <td colspan="2" class="credit">
93       [% END %]
94     [% ELSE %]
95       [% IF ( reverse_col ) %]
96         <td colspan="3" class="debit">
97       [% ELSE %]
98         <td colspan="2" class="credit">
99       [% END %]
100     [% END %]
101     [% total %]</td>
102   </tr>
103   </tfoot>
104 </table>
105 </div></div>
106
107 </div>
108 </div>
109
110 <div class="yui-b">
111 [% INCLUDE 'circ-menu.inc' %]
112 </div>
113 </div>
114 [% INCLUDE 'intranet-bottom.inc' %]