X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=524be1f6a25d6881877700f0b29ef2bebb47e969;hb=dccee148cb8194b077980343db879377f34e6b5a;hp=d1f567187e873fbf9aedcb15b62d943ae7734c0f;hpb=f8a8f142236a338fde4b733df48e022d19748c88;p=freeside.git
diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html
index d1f567187..524be1f6a 100644
--- a/fs_selfservice/FS-SelfService/cgi/myaccount.html
+++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html
@@ -1,59 +1,83 @@
-
MyAccount
-MyAccount
-<%= $url = "$selfurl?session=$session_id;action="; ''; %>
-<%= include('myaccount_menu') %>
-
+<%= $url = "$selfurl?action="; ''; %>
+<%= 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 .= ''.
- 'Open Invoices | ';
- my $link = qq!!;
+ my $thr = q!!;
+ $OUT .= ' ';
} else {
- $OUT .= 'You have no outstanding invoices.
';
+ $OUT .= 'You have no outstanding invoices. ';
}
%>
+<%= $announcement || '' %>
+
<%=
if ( @support_services ) {
$OUT .= '
-
-powered by freeside
-
-
-
-
+<%= include('footer') %>
| |