[Koha-patches] [PATCH] Fix for Bug 6179, Extra column on fines in staff client

Owen Leonard oleonard at myacpl.org
Wed Apr 13 17:53:41 CEST 2011


Template variable scope error fixes the column error.
This patch also includes a fix for the column span
error in the table footer.
---
 .../prog/en/modules/members/boraccount.tt          |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt
index 9f5262e..3545f86 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt
@@ -48,7 +48,7 @@
       <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>
@@ -70,7 +70,20 @@
 <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>
-- 
1.7.3



More information about the Koha-patches mailing list