3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Patrons › Account for [% INCLUDE 'patron-title.inc' %]</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
7 [% INCLUDE 'datatables.inc' %]
8 <script type="text/javascript">
9 $(document).ready(function() {
10 var txtActivefilter = _("Filter paid transactions");
11 var txtInactivefilter = _("Show all transactions");
12 var table_account_fines = $("#table_account_fines").dataTable($.extend(true, {}, dataTablesDefaults, {
13 "sPaginationType": "four_button",
14 'aaSorting': [[0, 'desc']],
15 "sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
17 { "sType": "title-string", "aTargets" : [ "title-string" ] }
20 $("#filter_c").html('<p><a href="#" id="filter_transacs">'+txtActivefilter+'</a>');
21 $('#filter_transacs').click(function(e) {
23 if ($(this).hasClass('filtered')) {
24 var filteredValue = '';
25 $(this).text(txtActivefilter);
26 } else { //Not filtered. Let's do it!
27 var filteredValue = '^((?!0.00).*)$'; //Filter not matching 0.00 http://stackoverflow.com/a/406408
28 $(this).text(txtInactivefilter);
30 table_account_fines.fnFilter(filteredValue, 4, true, false);
31 $(this).toggleClass('filtered');
36 <body id="pat_borraccount" class="pat">
37 [% INCLUDE 'header.inc' %]
38 [% INCLUDE 'patron-search.inc' %]
40 <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>
42 <div id="doc3" class="yui-t2">
47 [% INCLUDE 'members-toolbar.inc' %]
48 <form action="/cgi-bin/koha/members/boraccount.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form>
50 <!-- The manual invoice and credit buttons -->
51 <div class="statictabs">
53 <li class="active"><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Account</a></li>
54 <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]" >Pay fines</a></li>
55 <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% borrowernumber %]" >Create manual invoice</a></li>
56 <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% borrowernumber %]" >Create manual credit</a></li>
58 <div class="tabs-container">
59 <!-- The table with the account items -->
60 <table id="table_account_fines">
63 <th class="title-string">Date</th>
64 <th>Description of charges</th>
68 [% IF ( reverse_col ) %]
75 <!-- FIXME: Shouldn't hardcode dollar signs, since Euro or Pound might be needed -->
76 [% FOREACH account IN accounts %]
78 [% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
79 <td><span title="[% account.date %]">[% account.date |$KohaDates %]</span></td>
81 [% SWITCH account.accounttype %]
82 [% CASE 'Pay' %]Payment, thanks
83 [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
84 [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
85 [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
86 [% CASE 'N' %]New card
88 [% CASE 'A' %]Account management fee
90 [% CASE 'L' %]Lost item
91 [% CASE 'W' %]Writeoff
92 [% CASE 'FU' %]Accruing fine
93 [% CASE 'Rent' %]Rental fee
94 [% CASE 'FOR' %]Forgiven
95 [% CASE 'LR' %]Lost item fee refund
96 [% CASE 'PAY' %]Payment
97 [% CASE 'WO' %]Writeoff
100 [% CASE %][% account.accounttype %]
102 [%- IF account.description %], [% account.description %][% END %]
103 [% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&itemnumber=[% account.itemnumber %]">View item</a> [% END %][% account.title |html %]</td>
104 <td>[% account.note | html_line_break %]</td>
105 [% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
106 [% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding %]</td>
107 [% IF ( reverse_col ) %]
109 [% IF ( account.payment ) %]
110 <a href="boraccount.pl?action=reverse&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]">Reverse</a>
117 [% IF ( account.payment ) %]
118 <a target="_blank" href="printfeercpt.pl?action=print&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]">Print</a>
120 <a target="_blank" href="printinvoice.pl?action=print&accountlines_id=[% account.accountlines_id %]&borrowernumber=[% account.borrowernumber %]">Print</a>
128 <td colspan="4">Total due</td>
129 [% IF ( totalcredit ) %]
130 [% IF ( reverse_col ) %]
131 <td colspan="3" class="credit">
133 <td colspan="2" class="credit">
136 [% IF ( reverse_col ) %]
137 <td colspan="3" class="debit">
139 <td colspan="2" class="credit">
152 [% INCLUDE 'circ-menu.inc' %]
155 [% INCLUDE 'intranet-bottom.inc' %]