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

_______________________________________________
Koha-patches mailing list
Koha-patches@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to