X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=66e2c692ed6a451f60fcae8196b766fb047228be;hb=3564f619654c5cbf22fc2acbe7eff0c08308e859;hp=546ca1112c22ac64142dbe8e68a6ddd1a31375b2;hpb=04cc48bd2a049909af54b9e58afebffe51cdd1b2;p=freeside.git
diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html
index 546ca1112..66e2c692e 100644
--- a/fs_selfservice/FS-SelfService/cgi/myaccount.html
+++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html
@@ -1,45 +1,90 @@
-
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 .= '';
+ $OUT .= ' ';
} else {
$OUT .= 'You have no outstanding invoices.
';
}
%>
- |
-
-powered by freeside
-
+<%=
+ if ( @support_services ) {
+ $OUT .= '
';
+ } else {
+ $OUT .= '';
+ }
+%>
+<%= if (@tickets) {
+ $OUT .= include('ticket_summary');
+ } else {
+ $OUT .= '';
+ }
+%>
+<%= include('footer') %>