From: ivan Date: Sat, 7 Feb 2009 19:35:16 +0000 (+0000) Subject: right-align amount in prev history row X-Git-Tag: root_of_webpay_support~78 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=0ff2f82369f36a4f7a68ea80679eb39628f29988 right-align amount in prev history row --- diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index 9628d7418..2ab5339db 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -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/^\$\-/- \$/; @@ -186,14 +186,13 @@ - <% $balance_forward %> + <% $balance_forward %> %} % %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); %}