Merge remote-tracking branch 'origin/new/bug_6199'
[koha_gimpoz] / koha-tmpl / intranet-tmpl / prog / en / modules / members / boraccount.tt
index 9f5262e..995ea8c 100644 (file)
@@ -1,12 +1,12 @@
 [% INCLUDE 'doc-head-open.inc' %]
-<title>Koha &rsaquo; Patrons &rsaquo; Account for [% firstname %] [% surname %]</title>
+<title>Koha &rsaquo; Patrons &rsaquo; 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> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Account for [% firstname %] [% surname %]</div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; 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 %]&nbsp;[% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">View item</a>&nbsp;[% END %][% IF ( account.printtitle ) %] [% account.title |html %][% END %]</td>
+      <td>[% account.description %]&nbsp;[% IF ( account.itemnumber ) %]<a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.biblionumber %]&amp;itemnumber=[% account.itemnumber %]">View item</a>&nbsp;[% 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&amp;borrowernumber=[% account.borrowernumber %]&amp;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>