X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=d27f688e3e5985d42ba8e76f6a8c705943bda6e8;hp=9b54794bcd6a7e913a9fe2d21f4e4a054523d8d8;hb=44f5aa6d692b460cc34bc44810fab8e4c3e37b68;hpb=e67b7f4bc312c27c09ffcc235aa93b2b78af89a6
diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html
index 9b54794bc..d27f688e3 100644
--- a/fs_selfservice/FS-SelfService/cgi/myaccount.html
+++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html
@@ -1,5 +1,5 @@
<%= $url = "$selfurl?session=$session_id;action="; ''; %>
-<%= include('header') %>
+<%= include('header', 'My Account') %>
Hello <%= $name %>!
<%= $small_custview %>
@@ -10,11 +10,23 @@ Hello <%= $name %>!
'';
%>
+<%=
+ $OUT .= qq! View All Invoices !;
+%>
+
<%= if ( $balance > 0 ) {
if (scalar(grep $_, @hide_payment_fields)) {
$OUT .= qq! Make a payment
!;
} else {
- $OUT .= qq! Make a payment
!;
+ $OUT .= qq! Make a payment
!;
+ foreach my $term ( sort { $b <=> $a } keys %discount_terms_hash ) {
+ my $saved = $discount_terms_hash{$term}->[1];
+ my $amount = $discount_terms_hash{$term}->[2];
+ my $savings = ( $amount + $saved > 0 )
+ ? sprintf('%d', $saved / ( $amount + $saved ) * 100 ) : '0';
+ $OUT .= qq! Save $savings\% by paying for $term months: $amount
!;
+ }
+ $OUT .= qq!
!;
}
} %>
<%=
@@ -47,7 +59,7 @@ Hello <%= $name %>!
if ( @support_services ) {
$OUT .= '