[freeside-commits] freeside/httemplate/view/cust_main payment_history.html, 1.36, 1.37

Ivan,,, ivan at wavetail.420.am
Sat Feb 7 11:35:19 PST 2009


Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail.420.am:/tmp/cvs-serv16718

Modified Files:
	payment_history.html 
Log Message:
right-align amount in prev history row

Index: payment_history.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/payment_history.html,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- payment_history.html	7 Feb 2009 08:23:09 -0000	1.36
+++ payment_history.html	7 Feb 2009 19:35:16 -0000	1.37
@@ -166,10 +166,10 @@
 
 %#display payment history
 
+%my $money_char = $conf->config('money_char') || '$';
+%
 %sub balance_forward_row {
-%  my( $b, $date ) = @_;
-%  my $conf = new FS::Conf;
-%  my $money_char = $conf->config('money_char') || '$';
+%  my( $b, $date, $money_char ) = @_;
 %  ( my $balance_forward = $money_char. $b ) =~ s/^\$\-/- \$/;
 
    <TR ID="balance_forward_row">
@@ -186,14 +186,13 @@
      <TD CLASS="grid" BGCOLOR="#dddddd"></TD>
      <TD CLASS="grid" BGCOLOR="#dddddd"></TD>
      <TD CLASS="grid" BGCOLOR="#dddddd"></TD>
-     <TD CLASS="grid" BGCOLOR="#dddddd"><I><% $balance_forward %></I></TD>
+     <TD CLASS="grid" BGCOLOR="#dddddd" ALIGN="right"><I><% $balance_forward %></I></TD>
 
    </TR>
 %}
 %
 %my $balance = 0;
 %my %target = ();
-%my $money_char = $conf->config('money_char') || '$';
 %
 %my $years =  $conf->config('payment_history-years') || 2;
 %my $older_than = time - $years * 31556736; #60*60*24*365.24
@@ -215,7 +214,7 @@
 %    $display = '';
 %
 %    if ( $hidden && ! $seen++ ) {
-%      balance_forward_row($balance, $item->{'date'});
+%      balance_forward_row($balance, $item->{'date'}, $money_char);
 %    }
 %
 %  }
@@ -297,7 +296,7 @@
 % } 
 
 %if ( scalar(@history) && $hidden && ! $seen++ ) {
-%  balance_forward_row($balance, $lastdate);
+%  balance_forward_row($balance, $lastdate, $money_char);
 %}
 
 </TABLE>



More information about the freeside-commits mailing list