Kyle M Hall
2ca4841ea4
* Makes the status column display "Overdue!" if overdue * Fixes the due date formatting * Sorts the checkouts by date due ( oldest to newest ) Note: I found no evidence that this data was previously sorted, so I kept it simple. Sorting based on system preferences could be a future enhancement. Signed-off-by: Owen Leonard <oleonard@myacpl.org> This fixes the issues described for patrons with existing checkouts. Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
103 lines
4.5 KiB
Text
103 lines
4.5 KiB
Text
[% USE Koha %]
|
|
[% USE Branches %]
|
|
[% USE KohaDates %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Summary for [% firstname %] [% surname %] ([% cardnumber %])</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
|
|
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/print.css" />
|
|
[% INCLUDE 'slip-print.inc' #printThenClose %]
|
|
</head>
|
|
<body id="pat_moremember-print" class="pat" onload="printThenClose();">
|
|
<div id="main">
|
|
<h3><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cardnumber %]">Account summary: [% firstname %] [% surname %] ([% cardnumber %])</a></h3>
|
|
|
|
<ul>
|
|
<li>[% address %]<br />[% address2 %]</li>
|
|
<li>[% city %], [% zipcode %]</li>
|
|
<li>[% IF ( phone ) %][% phone %][% ELSE %](no phone number on file)[% END %]</li>
|
|
<li>[% IF ( email ) %][% email %][% ELSE %](no primary email on file)[% END %]</li>
|
|
[% IF ( emailpro ) %]
|
|
<li>[% emailpro %]</li>
|
|
[% END %]
|
|
<li>Registration date: [% dateenrolled | $KohaDates %]</li>
|
|
<li>Expiration date: [% dateexpiry | $KohaDates %]</li>
|
|
<li>Library: [% Branches.GetName( branchcode ) %]</li>
|
|
<li>Category: [% description %]</li>
|
|
</ul>
|
|
|
|
[% IF ( issues ) %]
|
|
<table>
|
|
<caption>Items checked out</caption>
|
|
<tr>
|
|
<th>Title</th>
|
|
<th>Author</th>
|
|
<th>Call no</th>
|
|
<th>Item type</th>
|
|
<th>Date due</th>
|
|
<th>Barcode</th>
|
|
<th>Charge</th>
|
|
<th>Price</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
|
|
[% FOREACH issue IN issues %]
|
|
[% IF ( issue.overdue ) %]<tr class="overdue">[% ELSE %]<tr>[% END %]
|
|
<td>
|
|
[% issue.title |html %]
|
|
<a href="/cgi-bin/koha/catalogue/detail.pl?item=[% issue.itemnumber %]&biblionumber=[% issue.biblionumber %]&bi=[% issue.biblioitemnumber %]"></a>
|
|
</td>
|
|
<td>[% issue.author %]</td>
|
|
<td>[% issue.itemcallnumber %]</td>
|
|
<td>[% issue.itemtype_description %]</td>
|
|
<td>[% issue.date_due | $KohaDates %]</td>
|
|
<td>[% issue.barcode %]</td>
|
|
<td>[% issue.charge %]</td>
|
|
<td>[% issue.replacementprice %]</td>
|
|
<td>[% IF ( issue.overdue ) %]Overdue![% ELSE %] [% END %]</td>
|
|
</tr>
|
|
[% END %]
|
|
|
|
<tr>
|
|
<td colspan="6" style="text-align: right; font-weight:bold;">Totals:</td>
|
|
<td>[% totaldue %]</td>
|
|
<td>[% totalprice %]</td>
|
|
<td colspan="3"> </td>
|
|
</tr>
|
|
</table>
|
|
[% END %]
|
|
|
|
[% IF ( accounts && ( totaldue != '0.00' ) ) %]
|
|
<table>
|
|
<caption>Account fines and payments</caption>
|
|
<tr>
|
|
<th>Description of charges</th>
|
|
<th>Date</th>
|
|
<th>Amount</th>
|
|
<th>Outstanding</th>
|
|
</tr>
|
|
|
|
[% FOREACH account IN accounts %]
|
|
[% NEXT IF account.amountoutstanding == '0.00' %]
|
|
<tr>
|
|
<td>
|
|
[% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&itemnumber=[% account.itemnumber %]">[% END %]
|
|
[% account.description %] [% IF ( account.printtitle ) %] [% account.title |html %][% END %]
|
|
[% IF ( account.itemnumber ) %]</a>[% END %]
|
|
</td>
|
|
<td>[% account.date | $KohaDates %]</td>
|
|
<td>[% account.amount %]</td>
|
|
<td>[% account.amountoutstanding %]</td>
|
|
</tr>
|
|
[% END %]
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="3">Total due</td>
|
|
<td colspan="2">[% totaldue %]</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
[% END %]
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|