X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=524be1f6a25d6881877700f0b29ef2bebb47e969;hb=912cbcaf930f41cd6a087ea4bcc581aad035dd41;hp=0de738515b872db92896249afc40b3e7384e9709;hpb=1958c28884c750ca37979f19bec3e3daf0386731;p=freeside.git
diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html
index 0de738515..524be1f6a 100644
--- a/fs_selfservice/FS-SelfService/cgi/myaccount.html
+++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html
@@ -1,66 +1,83 @@
-<%= $url = "$selfurl?session=$session_id;action="; ''; %>
+<%= $url = "$selfurl?action="; ''; %>
<%= include('header', 'My Account') %>
Hello <%= $name %>!
-<%= $small_custview %>
+
+<%= include('small_custview') %>
+
-<%= if ( $access_pkgnum ) {
- $OUT .= qq!Balance: \$$balance
!;
- }
- '';
+
+<%=
+ $OUT .= qq! View All Invoices !;
%>
<%= if ( $balance > 0 ) {
- if (scalar(grep $_, @hide_payment_fields)) {
+ if (scalar(grep $_, @hide_payment_fields)) { # this sucks
$OUT .= qq! Make a payment
!;
} else {
- $OUT .= qq! Make a payment
!;
+ $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 | !;
+ $OUT .= '
'; } else { - $OUT .= 'You have no outstanding invoices. '; + $OUT .= ' You have no outstanding invoices. '; } %> +<%= $announcement || '' %> + <%= if ( @support_services ) { $OUT .= '
|
---|