eedaec6e45
The code introduced by bug 2546 uses an undefined variable (line.title). It should be ACCOUNT_LINE.title. Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Galen Charlton <gmc@esilibrary.com>
85 lines
4.3 KiB
Text
85 lines
4.3 KiB
Text
[% USE Koha %]
|
|
[% USE KohaDates %]
|
|
|
|
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your fines and charges
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% BLOCK cssinclude %][% END %]
|
|
</head>
|
|
<body id="opac-account" class="scrollto">
|
|
[% INCLUDE 'masthead.inc' %]
|
|
|
|
<div class="main">
|
|
<ul class="breadcrumb">
|
|
<li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
|
|
<li>[% FOREACH BORROWER_INF IN BORROWER_INFO %]<a href="/cgi-bin/koha/opac-user.pl">[% BORROWER_INF.firstname %] [% BORROWER_INF.surname %]</a>[% END %] <span class="divider">›</span></li>
|
|
<li><a href="#">Your fines and charges</a></li>
|
|
</ul>
|
|
|
|
<div class="container-fluid">
|
|
<div class="row-fluid">
|
|
<div class="span2">
|
|
<div id="navigation">
|
|
[% INCLUDE 'navigation.inc' IsPatronPage=1 %]
|
|
</div>
|
|
</div>
|
|
<div class="span10">
|
|
<div id="useraccount" class="maincontent">
|
|
<h3>Fines and charges</h3>
|
|
|
|
[% IF ( ACCOUNT_LINES ) %]
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Description</th>
|
|
<th>Fine amount</th>
|
|
<th>Amount outstanding</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<th class="sum" colspan="3">Total due</th>
|
|
<td class="sum">[% total %]</td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
[% FOREACH ACCOUNT_LINE IN ACCOUNT_LINES %]
|
|
[% IF ( ACCOUNT_LINE.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
|
|
<td>[% ACCOUNT_LINE.date | $KohaDates %]</td>
|
|
<td>
|
|
[% SWITCH ACCOUNT_LINE.accounttype %]
|
|
[% CASE 'Pay' %]Payment,thanks
|
|
[% CASE 'Pay00' %]Payment,thanks (cash via SIP2)
|
|
[% CASE 'Pay01' %]Payment,thanks (VISA via SIP2)
|
|
[% CASE 'Pay02' %]Payment,thanks (credit card via SIP2)
|
|
[% CASE 'N' %]New Card
|
|
[% CASE 'F' %]Fine
|
|
[% CASE 'A' %]Account management fee
|
|
[% CASE 'M' %]Sundry
|
|
[% CASE 'L' %]Lost Item
|
|
[% CASE 'W' %]Writeoff
|
|
[% CASE %][% ACCOUNT_LINE.accounttype %]
|
|
[%- END -%]
|
|
[%- IF ACCOUNT_LINE.description %], [% ACCOUNT_LINE.description %][% END %]
|
|
[% IF ACCOUNT_LINE.title %]([% ACCOUNT_LINE.title %])[% END %]
|
|
</td>
|
|
[% IF ( ACCOUNT_LINE.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amount %]</td>
|
|
[% IF ( ACCOUNT_LINE.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amountoutstanding %]</td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
|
|
</table>
|
|
[% ELSE %]
|
|
<h4>You have no fines or charges</h4>
|
|
[% END %]
|
|
</div> <!-- / #useraccount -->
|
|
</div> <!-- / .span10 -->
|
|
</div> <!-- / .row-fluid -->
|
|
</div> <!-- / .container-fluid -->
|
|
</div> <!-- / .main -->
|
|
|
|
[% INCLUDE 'opac-bottom.inc' %]
|
|
[% BLOCK jsinclude %][% END %]
|