[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Patrons › Account for [% firstname %] [% surname %]</title>
+<title>Koha › Patrons › Account for [% INCLUDE 'patron-title.inc' %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
-<body>
+<body id="pat_borraccount" class="pat">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'patron-search.inc' %]
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Account for [% firstname %] [% surname %]</div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Account for [% INCLUDE 'patron-title.inc' %]</div>
<div id="doc3" class="yui-t2">
[% IF ( loop.odd ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
<td>[% account.date %]</td>
- <td>[% account.description %] [% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&itemnumber=[% account.itemnumber %]">View item</a> [% END %][% IF ( account.printtitle ) %] [% account.title |html %][% END %]</td>
+ <td>[% account.description %] [% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&itemnumber=[% account.itemnumber %]">View item</a> [% END %][% account.title |html %]</td>
<td>[% account.note %]</td>
[% IF ( account.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amount %]</td>
[% IF ( account.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% account.amountoutstanding %]</td>
- [% IF ( account.reverse_col ) %]
+ [% IF ( reverse_col ) %]
<td>
[% IF ( account.payment ) %]
<a href="boraccount.pl?action=reverse&borrowernumber=[% account.borrowernumber %]&accountno=[% account.accountno %]">Reverse</a>
<tfoot>
<tr>
<td colspan="4">Total due</td>
- [% IF ( totalcredit ) %]<td colspan="2" class="credit">[% ELSE %]<td colspan="2" class="debit">[% END %][% total %]</td>
+ [% IF ( totalcredit ) %]
+ [% IF ( reverse_col ) %]
+ <td colspan="3" class="credit">
+ [% ELSE %]
+ <td colspan="2" class="credit">
+ [% END %]
+ [% ELSE %]
+ [% IF ( reverse_col ) %]
+ <td colspan="3" class="debit">
+ [% ELSE %]
+ <td colspan="2" class="credit">
+ [% END %]
+ [% END %]
+ [% total %]</td>
</tr>
</tfoot>
</table>