X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fhistory.html;h=0b6f9ceda938d59dc6bd59f05b1a7481b890e666;hb=4b147e668c23fd3011885ed94d84f4f3bb27c71f;hp=00fdfa5ef8ddca6aaa05ab91b85b4397c8d7fd2c;hpb=b2f5f42600f11ab24e5393353ed4c0de48816862;p=freeside.git diff --git a/fs_selfservice/FS-SelfService/cgi/history.html b/fs_selfservice/FS-SelfService/cgi/history.html index 00fdfa5ef..0b6f9ceda 100644 --- a/fs_selfservice/FS-SelfService/cgi/history.html +++ b/fs_selfservice/FS-SelfService/cgi/history.html @@ -1,39 +1,14 @@ -<%= include('header', 'Billing History') %> +<%= include('header', 'Payment History') %> <%= -my $balance = 0; -my $style = 'text-align: left; margin: 0; padding: 0 1em 0 0;'; -my $moneystyle = 'text-align: right; margin: 0; padding: 0 1em 0 0;'; -my $col1 = "#ffffff"; -my $col2 = "#dddddd"; -my $col = $col1; -foreach my $item (@history) { - $balance += $$item{'amount'}; - $$item{'amount'} =~ s/^(-?)/$1$money_char/; - $out .= < - $$item{'date_pretty'} - $$item{'description'} - $$item{'amount'} - -EOF - $col = $col eq $col1 ? $col2 : $col1; -} -$balance = sprintf('%.2f',$balance); -$balance =~ s/^(-?)/$1$money_char/; -$out = <Balance: $balance

- - - - - - -$out -
DateDescriptionAmount
-EOF +my $out = mason_comp( + 'session_id' => $session_id, + 'comp' => '/elements/customer-statement.html', + 'args' => [ + 'history' => \@history, + ] +); +$out->{'output'} || $out->{'error'}; %> - - <%= include('footer') %>