[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE Branches %] [% USE AuthorisedValues %] [% USE Price %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Patrons › [% IF type == 'WRITEOFF' %] Write off an amount for [% patron.firstname | html %] [% patron.surname | html %] [% ELSE %] Collect fine payment for [% patron.firstname | html %] [% patron.surname | html %] [% END %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'patron-search.inc' %]
[% INCLUDE 'members-toolbar.inc' borrowernumber=patron.borrowernumber %]
[% IF ( error_over ) %]
You must pay a value less than or equal to [% total_due | format('%.2f') %].
[% END %] [% IF ( pay_individual ) %] [% IF ( error_registers ) %]
You must have at least one cash register associated with this branch before you can record payments.
[% ELSE %]
Pay an individual fine
Description Account type Amount Amount outstanding
Total amount payable:[% amountoutstanding | format('%.2f') %]
[% individual_description | html %] [% debit_type_code | html %] [% amount | format('%.2f') %] [% amountoutstanding | format('%.2f') %]
  1. 0.00
  2. [% SET payment_types = [] %] [% FOR pt IN AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %] [% NEXT IF pt.authorised_value.grep("^SIP[[:digit:]]{2}$").size() %] [% payment_types.push(pt) %] [% END %] [% IF payment_types.size > 0 %]
  3. [% END %] [% IF Koha.Preference('UseCashRegisters') %]
  4. [% END %]
[% END %] [% ELSIF ( writeoff_individual ) %]
Write off an individual fine
Description Account type Amount Amount outstanding
Total amount outstanding:[% amountoutstanding | format('%.2f') %]
[% individual_description | html %] [% debit_type_code | html %] [% amount | format('%.2f') %] [% amountoutstanding | format('%.2f') %]
[% ELSE %] [% IF ( error_registers && type != 'writeoff' ) %]
You must have at least one cash register associated with this branch before you can record payments.
[% ELSE %]
[% IF ( selected_accts ) %] [% IF type == 'WRITEOFF' %] Write off an amount toward selected fines [% ELSE %] Pay an amount toward selected fines [% END %] [% ELSE %] Pay an amount toward all fines [% END %]
  1. Total amount outstanding: [% total | format('%.2f') %]
  2. [% IF type == 'WRITEOFF' %] [% ELSE %] [% END %]
  3. [% IF type != 'WRITEOFF' %]
  4. 0.00
  5. [% SET payment_types = [] %] [% FOR pt IN AuthorisedValues.GetAuthValueDropbox('PAYMENT_TYPE') %] [% NEXT IF pt.authorised_value.grep("^SIP[[:digit:]]{2}$").size() %] [% payment_types.push(pt) %] [% END %] [% IF payment_types.size > 0 %]
  6. [% END %] [% IF Koha.Preference('UseCashRegisters') %]
  7. [% END %] [% END %]
[% END %] [% END %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'str/members-menu.inc' %] [% Asset.js("js/members-menu.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]