[freeside-commits] freeside/httemplate/graph/elements report.html, 1.2.4.1, 1.2.4.2

Erik Levinson levinse at wavetail.420.am
Thu Jan 20 17:11:08 PST 2011


Update of /home/cvs/cvsroot/freeside/httemplate/graph/elements
In directory wavetail.420.am:/tmp/cvs-serv13146/httemplate/graph/elements

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	report.html 
Log Message:
bug fix: all Excel reports using bottom_total option had total row off by one, RT10911

Index: report.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/graph/elements/report.html,v
retrieving revision 1.2.4.1
retrieving revision 1.2.4.2
diff -u -w -d -r1.2.4.1 -r1.2.4.2
--- report.html	30 Dec 2010 23:03:52 -0000	1.2.4.1
+++ report.html	21 Jan 2011 01:11:06 -0000	1.2.4.2
@@ -105,11 +105,11 @@
 %     $worksheet->write( $r, $c++, shift( @row_labels ) );
 %     foreach ( @{ shift( @data ) } ) {
 %       $total += $_;
-%       $bottom_total[$c] += $_;
+%       $bottom_total[$c-1] += $_;
 %       $worksheet->write($r, $c++,  sprintf($sprintf, $_) );
 %     }
 %     unless ( $opt{'nototal'} ) { 
-%       $bottom_total[$c] += $total; 
+%       $bottom_total[$c-1] += $total; 
 %       $worksheet->write($r, $c++,  sprintf($sprintf, $total) );
 %     } 
 %   }



More information about the freeside-commits mailing list