Owen Leonard
a7bdc6eb3e
There are many patron-related templates which still use event attributes to define events. This patch updates these templates so that events are defined in JavaScript. To test apply the patch and check out to a patron. - From the Print menu in the toolbar, choose "Print summary." The patron summary page should open and the print dialog should be automatically triggered. - From the Print menu in the toolbar, choose "Print slip." The patron slip page should open and the print dialog should be automatically triggered. - From the Print menu in the toolbar, choose "Print quick slip." The patron quick slip page should open and the print dialog should be automatically triggered. - Click the patron's "Fines" tab in the left-hand sidebar and then choose the "Account" tab. -- Click the "Print" button for an account payment (the link should point to printfeercpt.pl). A print receipt page should open and the print dialog should be automatically triggered. -- Follow the same procedure for a transaction which is not an account payment (the link should point to printinvoice.pl). - Click the "Create manual invoice" tab. -- Select one of the "type" choices. Doing so should automatically populate the "Description" field with the corresponding code. -- If necessary, define one or more values for the MANUAL_INV authorized value and confirm that those invoice types work as well. - From the patron's "Pay fines" tab, click the "Pay amount" button. In the "collect from patron" field, enter any combination of letters, numbers, and symbols. When you tab away from that field your text should be reformatted to currency format. - From the patrons home page, change the filter in the left-hand sidebar and submit it. The correct results should be returned. Signed-off-by: EricGosselin <eric.gosselin.5@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
127 lines
5.2 KiB
Text
127 lines
5.2 KiB
Text
[% USE Koha %]
|
|
[% USE Branches %]
|
|
[% USE KohaDates %]
|
|
[% USE Price %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Summary for [% firstname %] [% surname %] ([% cardnumber %])</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% INCLUDE 'slip-print.inc' #printThenClose %]
|
|
</head>
|
|
<body id="pat_moremember-print" class="pat">
|
|
<div id="main">
|
|
<h3><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cardnumber %]">Account summary: [% firstname %] [% surname %] ([% cardnumber %])</a></h3>
|
|
|
|
<ul>
|
|
[% IF Koha.Preference( 'AddressFormat' ) %]
|
|
[% INCLUDE "member-display-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
|
|
[% ELSE %]
|
|
[% INCLUDE 'member-display-address-style-us.inc' %]
|
|
[% END %]
|
|
<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 as_due_date => 1 %]</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 ( reserves ) %]
|
|
<table>
|
|
<caption>Pending holds</caption>
|
|
<tr>
|
|
<th>Title</th>
|
|
<th>Author</th>
|
|
<th>Placed on</th>
|
|
<th>Expires on</th>
|
|
<th>Pick up location</th>
|
|
</tr>
|
|
|
|
[% FOREACH reserve IN reserves %]
|
|
<tr>
|
|
<td>[% reserve.title %]</td>
|
|
<td>[% reserve.author %]</td>
|
|
<td>[% reserve.reservedate | $KohaDates %]</td>
|
|
<td>[% reserve.expirationdate | $KohaDates %]</td>
|
|
<td>[% reserve.waiting_at %]</td>
|
|
</tr>
|
|
[% END %]
|
|
</table>
|
|
[% END %]
|
|
[% IF accounts && totaldue != 0 %]
|
|
<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 %]
|
|
<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 style="text-align:right;">[% account.amount | $Price %]</td>
|
|
<td style="text-align:right;">[% account.amountoutstanding | $Price %]</td>
|
|
</tr>
|
|
[% END %]
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="3">Total due</td>
|
|
<td colspan="2" style="text-align:right;">[% totaldue | $Price %]</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
[% END %]
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|