Fines and charges
+ [% IF credits || debits %]
+
+
+
Account balance: [% borrower.account_balance | $Currency %]
+
+
+
+
+
View payments
+
+
+
+ Fees |
+
+
+ |
+ ID |
+ Description |
+ Type |
+ Amount |
+ Outstanding |
+ Created on |
+ Updated on |
+
+
+
+
+
- [% IF ( ACCOUNT_LINES ) %]
-
-
-
- Date |
- Description |
- Fine amount |
- Amount outstanding |
-
-
-
-
-
- Total due |
- [% total %] |
-
-
-
-
- [% FOREACH ACCOUNT_LINE IN ACCOUNT_LINES %]
- [% IF ( ACCOUNT_LINE.odd ) %][% ELSE %]
[% END %]
- [% ACCOUNT_LINE.date | $KohaDates %] |
-
- [% 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 'FU' %]Accruing fine
- [% CASE 'Rent' %]Rental fee
- [% CASE 'FOR' %]Forgiven
- [% CASE 'LR' %]Lost item fee refund
- [% CASE 'PAY' %]Payment
- [% CASE 'WO' %]Writeoff
- [% CASE 'C' %]Credit
- [% CASE 'CR' %]Credit
- [% CASE %][% ACCOUNT_LINE.accounttype %]
- [%- END -%]
- [%- IF ACCOUNT_LINE.description %], [% ACCOUNT_LINE.description %][% END %]
- [% IF ACCOUNT_LINE.title %]([% ACCOUNT_LINE.title %])[% END %]
- |
- [% IF ( ACCOUNT_LINE.amountcredit ) %][% ELSE %] | [% END %][% ACCOUNT_LINE.amount %] |
- [% IF ( ACCOUNT_LINE.amountoutstandingcredit ) %][% ELSE %] | [% END %][% ACCOUNT_LINE.amountoutstanding %] |
-
- [% END %]
-
-
-
+
+
View fees
+
+
+
+ Payments |
+
+
+ |
+ ID |
+ Notes |
+ Type |
+ Amount |
+ Remaining |
+ Created on |
+ Updated on |
+
+
+
+
+
+
[% ELSE %]
You have no fines or charges
[% END %]
@@ -91,4 +91,305 @@
[% INCLUDE 'opac-bottom.inc' %]
+
+[% INCLUDE 'datatables.inc' %]
+
+
+
[% BLOCK jsinclude %][% END %]
+
+[% BLOCK format_data %]
+ [% FOREACH key IN data.result_source.columns %]
+ [% IF key.match('^amount') %]
+ "[% key %]": "[% data.$key FILTER $Currency %]",
+ [% ELSIF key.match('_on$') %]
+ "[% key %]": "[% data.$key | $KohaDates %]",
+ [% ELSE %]
+ "[% key %]": "[% data.$key %]",
+ [% END %]
+ [% END %]
+[% END %]
--- a/opac/opac-account.pl
+++ a/opac/opac-account.pl
@@ -18,7 +18,6 @@
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see