X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=309021a876c084637c3f3fdd735263066c240be2;hb=425cf92cbeb8b417c8ebfb5a7e00d23eca866506;hp=c9ca0c5f0de0af3fc85f6815736a5773737fd095;hpb=32db3ad86bcf04e4f34705a396b718061d333f20;p=freeside.git
diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html
index c9ca0c5f0..309021a87 100644
--- a/fs_selfservice/FS-SelfService/cgi/myaccount.html
+++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html
@@ -1,63 +1,82 @@
-
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 ) {
- if (scalar(grep $_, @hide_payment_field)) {
- $OUT .= qq! Make a payment
!;
- } else {
+ 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. ';
}
+
%>
<%=
if ( @support_services ) {
$OUT .= '
<%= include('footer') %>
| |