[% USE raw %] [% USE Asset %] [% USE Branches %] [% USE Price %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Administration › [% IF op =='add_form' %] Debit types › [% IF debit_type.code %] Modify debit type [% ELSE %] New debit type [% END %] [% ELSE %] [% IF op == 'delete_confirm' %] Debit types › Confirm deletion of debit type [% ELSE %] Debit types [% END %] [% END %] [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'prefs-admin-search.inc' %]
[% FOREACH m IN messages %]
[% SWITCH m.code %] [% CASE 'error_on_saving' %] An error occurred when saving this debit type. [% CASE 'error_on_delete' %] An error occurred when deleting this debit type. Check the logs. [% CASE 'success_on_saving' %] Debit type saved successfully. [% CASE 'success_on_delete' %] Debit type deleted successfully. [% CASE %] [% m.code | html %] [% END %]
[% END %] [% IF op == 'add_form' %] [% IF debit_type %]

Modify a debit type

[% ELSE %]

New debit type

[% END %]
  1. [% IF debit_type %] [% debit_type.code | html %] [% ELSE %] Required. Maximum length is 64 letters [% END %]
  2. Required
  3. [% IF debit_type.can_be_added_manually %] [% ELSE %] [% END %]
  4. Select 'All libraries' if this debit type should be available at all libraries. Otherwise select libraries you want to associate debit type with.
Cancel
[% END %] [% IF op == 'delete_confirm' %]

Delete debit type "[% debit_type.description | html %]?"

Debit type code [% debit_type.code | html %]
Debit type description [% debit_type.description | html %]
[% END %] [% IF op == 'list' %]

Account debit types

[% IF debit_types.count %] [% FOREACH debit_type IN debit_types %] [% END %]
Code Description Default amount Can be added manually Library limitations Actions
[% debit_type.code | html %] [% debit_type.description | html %] [% debit_type.default_amount | $Price %] [% IF debit_type.can_be_added_manually %]Yes[% ELSE %]No[% END %] [% IF debit_type.library_limits.count > 0 %] [% library_limits_str = "" %] [% FOREACH library IN debit_type.library_limits %] [%- IF loop.first -%] [% library_limits_str = library.branchname _ " (" _ library.branchcode _ ")" %] [% ELSE %] [% library_limits_str = library_limits_str _ "\n" _ library.branchname _ " (" _ library.branchcode _ ")" %] [% END %] [% END %] [% IF debit_type.library_limits.count > 1 %] [% debit_type.library_limits.count | html %] library limitations [% ELSE %] [% debit_type.library_limits.count | html %] library limitation [% END %] [% ELSE %] No limitation [% END %] [% IF !debit_type.is_system %] Edit Delete [% END %]
[% ELSE %]
There are no account debit types defined. Create new debit type
[% END %] [% END %]
[% MACRO jsinclude BLOCK %] [% Asset.js("js/admin-menu.js") | $raw %] [% INCLUDE 'datatables.inc' %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]