summaryrefslogtreecommitdiff
path: root/fs_selfservice/FS-SelfService/cgi/myaccount.html
diff options
context:
space:
mode:
authorivan <ivan>2009-08-10 11:50:04 +0000
committerivan <ivan>2009-08-10 11:50:04 +0000
commit99100d7e0d0b22a1844dde88acd529e79d096463 (patch)
treecba7b5d61fff4187490b644ba4414ac2085a6e4a /fs_selfservice/FS-SelfService/cgi/myaccount.html
parent39000f1ad925a76a4a334271b8e9e5da6a5dcb89 (diff)
when using pkg-balances, limit self-service access when a customer with multiple packages logs on, RT#4189
Diffstat (limited to 'fs_selfservice/FS-SelfService/cgi/myaccount.html')
-rw-r--r--fs_selfservice/FS-SelfService/cgi/myaccount.html12
1 files changed, 9 insertions, 3 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html
index bcfcf9540..d6527fe76 100644
--- a/fs_selfservice/FS-SelfService/cgi/myaccount.html
+++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html
@@ -4,11 +4,17 @@
Hello <%= $name %>!<BR><BR>
<%= $small_custview %>
<BR>
+<%= if ( $pkgnum ) {
+ $OUT .= qq!Balance: <B>\$$balance</B><BR><BR>!;
+ }
+ '';
+%>
+
<%= if ( $balance > 0 ) {
- if (scalar(grep $_, @hide_payment_field)) {
- $OUT .= qq! <B><A HREF="${url}make_payment">Make a payment</A></B><BR><BR>!;
- } else {
+ if (scalar(grep $_, @hide_payment_fields)) {
$OUT .= qq! <B><A HREF="${url}make_thirdparty_payment&payby_method=CC">Make a payment</A></B><BR><BR>!;
+ } else {
+ $OUT .= qq! <B><A HREF="${url}make_payment">Make a payment</A></B><BR><BR>!;
}
} %>
<%=