[% USE raw %]
[% USE Asset %]
[% USE Price %]
[% USE Branches %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
Koha › Delete patron [% patron.firstname | html %] [% patron.surname | html %]
[% INCLUDE 'doc-head-close.inc' %]
[% INCLUDE 'header.inc' %]
[% INCLUDE 'patron-search.inc' %]
Home › Patrons › Delete patron [% patron.firstname | html %] [% patron.surname | html %]
[% INCLUDE 'members-toolbar.inc' %]
[% IF ( ItemsOnIssues || charges || guarantees ) %]
Cannot delete patron
[% IF ( ItemsOnIssues ) %]
Patron has [% ItemsOnIssues | html %] item(s) checked out.
[% END %]
[% IF ( charges ) %]
Patron has [% charges | $Price %] in fines.
[% END %]
[% IF ( guarantees ) %]
Patron's record has guaranteed accounts attached.
[% END %]
[% ELSIF op == 'delete_confirm' and patron %]
[%# TODO add "patron does not exist" unless patron %]
[% IF ( ItemsOnHold ) %]
Patron has [% ItemsOnHold | html %] hold(s). Deleting patron cancels all their holds.
[% END %]
Are you sure you want to delete the patron [% patron.firstname | html %] [% patron.surname | html %]? This cannot be undone.
[% END %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'str/members-menu.inc' %]
[% Asset.js("js/members-menu.js") | $raw %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]