[% USE Koha %] [% USE KohaDates %] [% USE Price %] [% SET ENABLE_OPAC_PAYMENTS = Koha.Preference('EnablePayPalOpacPayments') || plugins %] [% SET DISPLAY_PAYMENT_BLOCK = 0 %] [% INCLUDE 'doc-head-open.inc' %] [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your fines and charges [% INCLUDE 'doc-head-close.inc' %] [% BLOCK cssinclude %] [% END %] [% INCLUDE 'bodytag.inc' bodyid='opac-account' bodyclass='scrollto' %] [% INCLUDE 'masthead.inc' %]
[% IF message %]
[% IF message == 'valid_payment' %]

Your payment of $[% message_value %] has been processed successfully!

[% ELSIF message == 'duplicate_payment' %]

A payment with the transaction id '[% message_value %]' has already been posted to an account.

Please contact a librarian for details.

[% ELSIF message == 'invalid_payment' %]

The transaction id '[% message_value %]' for this payment is invalid.

Please contact a librarian for details.

[% END %]
[% END %] [% IF payment_error %]

Error: there was a problem processing your payment

[% IF payment_error == "PAYPAL_UNABLE_TO_CONNECT" %]

Unable to connect to PayPal.

Please contact a librarian to verify your payment.

[% ELSIF payment_error == "PAYPAL_ERROR_PROCESSING" %]

Unable to verify payment.

Please contact a librarian to verify your payment.

[% END %]
[% ELSIF payment %]

Payment applied: your payment of [% payment %] has been applied to your account

[% END %]

Fines and charges

[% IF ( ACCOUNT_LINES ) %]
[% IF ENABLE_OPAC_PAYMENTS %][% END %] [%- IF ENABLE_OPAC_PAYMENTS -%] [%- SET COLSPAN = 4 -%] [%- ELSE -%] [%- SET COLSPAN = 3 -%] [%- END -%] [% FOREACH ACCOUNT_LINE IN ACCOUNT_LINES %] [% IF ( ACCOUNT_LINE.odd ) %][% ELSE %][% END %] [% IF ENABLE_OPAC_PAYMENTS %] [% END %] [% IF ( ACCOUNT_LINE.amountcredit ) %] [% IF ( ACCOUNT_LINE.amountoutstandingcredit ) %] [% END %]
 Date Description Fine amount Amount outstanding
Total due [% total | $Price %]
[% IF ACCOUNT_LINE.amountoutstanding > 0 %] [% SET DISPLAY_PAYMENT_BLOCK = 1 %] [% 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 'HE' %]Hold waiting too long [% CASE 'Rent' %]Rental fee [% CASE 'FOR' %]Forgiven [% CASE 'LR' %]Lost item fee refund [% CASE 'PF' %]Processing fee [% 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 %] [% ELSE %][% END %][% ACCOUNT_LINE.amount | $Price %][% ELSE %][% END %][% ACCOUNT_LINE.amountoutstanding | $Price %]
[% IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %] [% END %]
[% ELSE %]

You have no fines or charges

[% END %]
[% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] [% INCLUDE 'datatables.inc' %] [% END %]