[% USE raw %]
[% USE Asset %]
[% USE KohaDates %]
[% USE AuthorisedValues %]
[% USE Branches %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% UNLESS blocking_error %]Discharge for [% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])[% END %] › Patrons › Koha
[% INCLUDE 'doc-head-close.inc' %]
[% WRAPPER 'header.inc' %]
[% INCLUDE 'patron-search-header.inc' %]
[% END %]
[% WRAPPER 'sub-header.inc' %]
[% END %]
[% INCLUDE 'members-toolbar.inc' %]
Discharge
[% FOR message IN messages %]
[% IF message.code == "unable_to_generate_pdf" %]
An error occurs when generating the PDF file.
Please contact the administrator to resolve this problem.
[% END %]
[% END %]
[% UNLESS can_be_discharged %]
Cannot edit discharge: the patron has checked out items.
[% ELSE %]
[% IF patron.holds.count %]
Patron has holds. They will be cancelled if the discharge is generated.
[% END %]
[% END %]
[% IF validated_discharges %]
Already validated discharges
Requested
Validated
[% FOR d IN validated_discharges %]
[% d.needed | $KohaDates with_hours = 1 %]
[% d.validated | $KohaDates with_hours = 1 %]
[% END %]
[% END %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'str/members-menu.inc' %]
[% Asset.js("js/members-menu.js") | $raw %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]