[% USE Koha %] [% USE Branches %] [% USE KohaDates %] [% USE Price %] [% USE ItemTypes %] [% SET footerjs = 1 %] [% PROCESS 'accounts.inc' %] [% INCLUDE 'doc-head-open.inc' %] Summary for [% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %]) [% INCLUDE 'doc-head-close.inc' %]

Account summary: [% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])

[% IF ( issues ) %] [% FOREACH issue IN issues %] [% IF ( issue.overdue ) %][% ELSE %][% END %] [% END %]
Items checked out
Title Author Call no Item type Date due Barcode Charge Price Status
[% issue.title | html %] [% issue.author | html %] [% issue.itemcallnumber | html %] [% ItemTypes.GetDescription( issue.itype ) | html %] [% issue.date_due | $KohaDates as_due_date => 1 %] [% issue.barcode | html %] [% issue.charge | $Price %] [% issue.replacementprice | $Price %] [% IF ( issue.overdue ) %]Overdue![% ELSE %] [% END %]
Totals: [% totaldue | $Price %] [% totalprice | $Price %]  
[% END %] [% IF ( reserves ) %] [% FOREACH reserve IN reserves %] [% END %]
Pending holds
Title Author Placed on Expires on Pick up location
[% reserve.title | html %] [% reserve.author | html %] [% reserve.reservedate | $KohaDates %] [% reserve.expirationdate | $KohaDates %] [% reserve.waiting_at | html %]
[% END %] [% IF accounts && totaldue != 0 %] [% FOREACH account IN accounts %] [% IF ( account.amount < 0 ) %] [% IF ( account.amountoutstanding < 0 ) %] [% END %]
Account fines and payments
Date Description of charges Note Amount Outstanding
[% account.date | $KohaDates %] [% PROCESS account_type_description account=account %] [%- IF account.payment_type %] , [% AuthorisedValues.GetByCode('PAYMENT_TYPE', account.payment_type) | html %] [% END %] [%- IF account.description %] , [% account.description | html %] [% END %]   [% IF ( account.itemnumber AND account.debit_type_code != 'OVERDUE' ) %] [% account.item.biblio.title | html %] [% END %] [% account.note | html_line_break %] [% ELSE %] [% END %][% account.amount | $Price %] [% ELSE %] [% END %] [% account.amountoutstanding | $Price %]
Total due [% totaldue | $Price %]
[% END %] [% MACRO jsinclude BLOCK %] [% INCLUDE 'slip-print.inc' #printThenClose %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]