X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=a6352e07a3e83af18cc12972577b91f9750e886e;hb=a1a0800de7c69fe5ee414b79e408ceacd4a1c2c3;hp=9997d7059a1500d81a9221d89460c4349feae957;hpb=2041a9143fac20b79ead4a1ae01224dedf5b27c2;p=freeside.git diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html index 9997d7059..a6352e07a 100644 --- a/fs_selfservice/FS-SelfService/cgi/myaccount.html +++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html @@ -1,46 +1,90 @@ -
+<%= include('header', 'My Account') %>
Hello <%= $name %>! -<%= $small_custview %> + +<%= include('small_custview') %> + + +<%= + $OUT .= qq! View All Invoices !; +%> + <%= if ( $balance > 0 ) { - $OUT .= qq! Make a payment !; + if (scalar(grep $_, @hide_payment_fields)) { # this sucks + $OUT .= qq! Make a payment !; + } else { + $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! !; + } } %> <%= if ( @open_invoices ) { $OUT .= ' |
Support Time Remaining | '. + '||
---|---|---|
Package | '. + ' | Time Remaining | !;
+ my $a = qq!';
+ $OUT .=
+ " |