[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE Branches %] [% USE Registers %] [% USE Price %] [% SET footerjs = 1 %] [% PROCESS 'accounts.inc' %] [% INCLUDE 'doc-head-open.inc' %] [% BLOCK cash_register_required %]

You must have at least one cash register associated with the library before you can record payments.

[% IF ( CAN_user_parameters_manage_cash_registers ) %]
[% END %]
[% END %] [% SET registers = Registers.all( filters => { current_branch => 1 } ) %] [% IF type == 'WRITEOFF' %] Write off an amount for [% INCLUDE 'patron-title.inc' no_html = 1 %] [% ELSE %] Collect fine payment for [% INCLUDE 'patron-title.inc' no_html = 1 %] [% END %] › Patrons › Koha [% INCLUDE 'doc-head-close.inc' %] [% WRAPPER 'header.inc' %] [% INCLUDE 'patron-search-header.inc' %] [% END %] [% WRAPPER 'sub-header.inc' %] [% END %]

[% IF ( pay_individual ) %] Pay an individual fine [% ELSIF ( writeoff_individual ) %] Write off an individual fine [% 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 %] [% END %]

[% INCLUDE 'members-toolbar.inc' borrowernumber=patron.borrowernumber %]
[% IF ( error_over ) %]
You must pay a value less than or equal to [% total_due | $Price %].
[% END %] [% IF ( error_under ) %]
You must collect a value greater than or equal to [% total_paid | $Price %].
[% END %] [% IF ( pay_individual ) %] [% IF Koha.Preference('UseCashRegisters') && ( registers.size == 0 ) %] [% PROCESS 'cash_register_required' %] [% ELSE %]
Pay an individual fine [% line.debit_type_code = debit_type_code %]
Description Account type Amount Amount outstanding
Total amount payable:[% amountoutstanding | $Price %]
[% individual_description | html %] [% PROCESS account_type_description account=line %] [% amount | $Price %] [% amountoutstanding | $Price %]
  1. 0.00
  2. [% INCLUDE 'transaction_types.inc' type="payment" %] [% IF Koha.Preference('UseCashRegisters') %]
  3. [% IF Koha.Preference('RequireCashRegister') %]
  4. [% END %]
[% IF available_additional_fields %] [% INCLUDE 'additional-fields-entry.inc' available=available_additional_fields values=additional_field_values %] [% END %]
[% END %] [% ELSIF ( writeoff_individual ) %]
Write off an individual fine [% line.debit_type_code = debit_type_code %]
Description Account type Amount Amount outstanding
Total amount outstanding:[% amountoutstanding | $Price %]
[% individual_description | html %][% PROCESS account_type_description account=line %] [% amount | $Price %] [% amountoutstanding | $Price %]
[% IF available_additional_fields %] [% INCLUDE 'additional-fields-entry.inc' available=available_additional_fields values=additional_field_values %] [% END %]
[% ELSE %] [% IF Koha.Preference('UseCashRegisters') && ( registers.size == 0 ) && ( type != 'WRITEOFF' ) %] [% PROCESS 'cash_register_required' %] [% ELSE %] [% IF selected_accts %] [% END %]
[% 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 | $Price %]
  2. [% IF type == 'WRITEOFF' %] [% ELSE %] [% END %]
  3. [% IF type != 'WRITEOFF' %]
  4. 0.00
  5. [% INCLUDE 'transaction_types.inc' type="payment" %] [% IF Koha.Preference('UseCashRegisters') %]
  6. [% END %] [% END %]
[% IF available_additional_fields %] [% INCLUDE 'additional-fields-entry.inc' available=available_additional_fields values=additional_field_values %] [% END %]
[% END %] [% END %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'str/members-menu.inc' %] [% Asset.js("js/members-menu.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]