X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=db95f339f41cb30f2fa0c02124182dfd2a2dc98a;hb=123bc067cc9fd8b247fb0b4e9a86066f32e83991;hp=f48fdedea4e1f8e7129365bcf044e3e6bf0d1f5b;hpb=eb9668a6f3181ee02cb335272c5ee4616e61fd09;p=freeside.git diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html index f48fdedea..db95f339f 100644 --- a/fs_selfservice/FS-SelfService/cgi/myaccount.html +++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html @@ -1,21 +1,38 @@ -
-MyAccount - - |
+<%= include('header', 'My Account') %>
Hello <%= $name %>! <%= $small_custview %> +<%= if ( $access_pkgnum ) { + $OUT .= qq!Balance: \$$balance !; + } + ''; +%> + +<%= + $OUT .= qq! View All Invoices !; +%> + <%= if ( $balance > 0 ) { - $OUT .= qq! Make a payment !; + 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! !; + } } %> <%= if ( @open_invoices ) { $OUT .= '
|
Support Time Remaining | '. + '||
---|---|---|
# | Package | '. + 'Time Remaining | !;
+ my $a = qq!';
+ $OUT .=
+ " |
Open Tickets | ||||
---|---|---|---|---|
# | Subject | Priority | Queue | '. + 'Status | !; + $OUT .= + " |