X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=9ab2622619403f2301ce6ca237edb3f6ecddbac9;hb=e513d7cb331d7c7d99d1ea7b5f0a5f8e08e0d725;hp=bcfcf9540463dd50e55597d50456852be58f60ec;hpb=7f43bf155bc79e3c9bd5d88e53117595963c301e;p=freeside.git
diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html
index bcfcf9540..9ab262261 100644
--- a/fs_selfservice/FS-SelfService/cgi/myaccount.html
+++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html
@@ -1,14 +1,34 @@
<%= $url = "$selfurl?session=$session_id;action="; ''; %>
-<%= include('header') %>
+<%= include('header', 'My Account') %>
Hello <%= $name %>!
-<%= $small_custview %>
+
+<%= include('small_custview') %>
+
+<%= unless ( $access_pkgnum ) {
+ $OUT .= qq!Balance: \$$balance
!;
+ }
+ '';
+%>
+
+<%=
+ $OUT .= qq! View All Invoices !;
+%>
+
<%= if ( $balance > 0 ) {
- if (scalar(grep $_, @hide_payment_field)) {
- $OUT .= qq! Make a payment
!;
- } else {
+ if (scalar(grep $_, @hide_payment_fields)) {
$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!
!;
}
} %>
<%=
@@ -16,17 +36,17 @@ Hello <%= $name %>!
$OUT .= '
Open Invoices | !;
my $a=qq!';
$OUT .=
"$a\$!. $invoice->{'owed'}.
+ qq! | $a\$!. $invoice->{'owed'}.
' | '.
'if ( @support_services ) { $OUT .= '
|
---|