3 [% USE ColumnsSettings %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Patrons › Account for [% INCLUDE 'patron-title.inc' %]</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
8 [% INCLUDE 'datatables.inc' %]
9 [% INCLUDE 'columns_settings.inc' %]
10 <script type="text/javascript">
11 $(document).ready(function() {
12 var txtActivefilter = _("Filter paid transactions");
13 var txtInactivefilter = _("Show all transactions");
14 var columns_settings = [% ColumnsSettings.GetColumns('members', 'fines', 'account-fines', 'json') %];
15 var table_account_fines = KohaTable("#table_account_fines", {
16 "sPaginationType": "four_button",
17 'aaSorting': [[0, 'desc']],
18 "sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
20 { "sType": "title-string", "aTargets" : [ "title-string" ] },
21 { "bSortable": false, "bSearchable": false, "aTargets": [-1] }
24 $("#filter_c").html('<p><a href="#" id="filter_transacs"><i class="fa fa-filter"></i> '+txtActivefilter+'</a>');
25 $('#filter_transacs').click(function(e) {
27 if ($(this).hasClass('filtered')) {
28 var filteredValue = '';
29 $(this).html('<i class="fa fa-filter"></i> '+txtActivefilter);
30 } else { //Not filtered. Let's do it!
31 var filteredValue = '^((?!0.00).*)$'; //Filter not matching 0.00 http://stackoverflow.com/a/406408
32 $(this).html('<i class="fa fa-filter"></i> '+txtInactivefilter);
34 table_account_fines.fnFilter(filteredValue, 4, true, false);
35 $(this).toggleClass('filtered');
40 <body id="pat_borraccount" class="pat">
41 [% INCLUDE 'header.inc' %]
42 [% INCLUDE 'patron-search.inc' %]
44 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Account for [% INCLUDE 'patron-title.inc' %]</div>
46 <div id="doc3" class="yui-t2">
51 [% INCLUDE 'members-toolbar.inc' %]
52 <form action="/cgi-bin/koha/members/boraccount.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form>
54 <!-- The manual invoice and credit buttons -->
55 <div class="statictabs">
57 <li class="active"><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Account</a></li>
58 <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]" >Pay fines</a></li>
59 <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% borrowernumber %]" >Create manual invoice</a></li>
60 <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% borrowernumber %]" >Create manual credit</a></li>
62 <div class="tabs-container">
63 <!-- The table with the account items -->
64 <table id="table_account_fines">
67 <th class="title-string">Date</th>
68 <th>Description of charges</th>
72 [% IF ( reverse_col ) %]
80 <!-- FIXME: Shouldn't hardcode dollar signs, since Euro or Pound might be needed -->
81 [% FOREACH account IN accounts %]
84 <td><span title="[% account.date %]">[% account.date |$KohaDates %]</span></td>
86 [% SWITCH account.accounttype %]
87 [% CASE 'Pay' %]Payment, thanks
88 [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
89 [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
90 [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
91 [% CASE 'N' %]New card
93 [% CASE 'A' %]Account management fee
95 [% CASE 'L' %]Lost item
96 [% CASE 'W' %]Writeoff
97 [% CASE 'FU' %]Accruing fine
98 [% CASE 'HE' %]Hold waiting too long
99 [% CASE 'Rent' %]Rental fee
100 [% CASE 'FOR' %]Forgiven
101 [% CASE 'LR' %]Lost item fee refund
102 [% CASE 'PAY' %]Payment
103 [% CASE 'WO' %]Writeoff
105 [% CASE 'CR' %]Credit
106 [% CASE %][% account.accounttype %]
108 [%- IF account.description %], [% account.description %][% END %]
109 [% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&itemnumber=[% account.itemnumber %]">[% account.title |html %]</a>[% END %]</td>
110 <td>[% account.note | html_line_break %]</td>
111 [% IF ( account.amountcredit ) %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amount %]</td>
112 [% IF ( account.amountoutstandingcredit ) %]<td class="credit" style="text-align: right;">[% ELSE %]<td class="debit" style="text-align: right;">[% END %][% account.amountoutstanding %]</td>
114 [% IF ( account.payment ) %]
115 <a target="_blank" href="printfeercpt.pl?action=print&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs"><i class="fa fa-print"></i> Print</a>
117 <a target="_blank" href="printinvoice.pl?action=print&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs"><i class="fa fa-print"></i> Print</a>
119 [% IF ( reverse_col) %]
120 [% IF ( account.payment ) %]
121 <a href="boraccount.pl?action=reverse&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]" class="btn btn-default btn-xs"><i class="fa fa-undo"></i> Reverse</a>
132 <td colspan="4">Total due</td>
133 [% IF ( totalcredit ) %]
134 <td class="credit" style="text-align: right;">[% total %]</td>
136 <td class="debit"style="text-align: right;">[% total %]</td>
148 [% INCLUDE 'circ-menu.inc' %]
151 [% INCLUDE 'intranet-bottom.inc' %]