X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=a57bfb14a34058bed57ff327c3d65e6b12572d93;hb=7dc0206e7ff40bfd3e95018a7d724a63ce0af8ab;hp=9997d7059a1500d81a9221d89460c4349feae957;hpb=b8cfd0780aa40bb07f3215bf9cb58011f5e32a35;p=freeside.git diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html index 9997d7059..a57bfb14a 100644 --- a/fs_selfservice/FS-SelfService/cgi/myaccount.html +++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html @@ -1,15 +1,33 @@ -
+<%= 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 ) { @@ -31,16 +49,66 @@ Hello <%= $name %>! ' |
Support Time Remaining | '. + '||
---|---|---|
# | Package | '. + 'Time Remaining | !;
+ my $a = qq!';
+ $OUT .=
+ " |
Open Tickets | |||||
---|---|---|---|---|---|
# | Subject | Priority | Queue | '. + 'Status | Created | !;
+ my $link = qq!!;
+ $OUT .=
+ " |