X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fsmall_custview.html;h=329f82e90de937c9674dc90b251960cf77853d5e;hb=0c76afbb717e1716e6126bc4a120b8d9471614a0;hp=470fe7151b15bc48cb14bab53c5baf4e1810c0b6;hpb=f3e0ac2b009c4edd5692cb587ff709dac2223ebe;p=freeside.git diff --git a/fs_selfservice/FS-SelfService/cgi/small_custview.html b/fs_selfservice/FS-SelfService/cgi/small_custview.html index 470fe7151..329f82e90 100644 --- a/fs_selfservice/FS-SelfService/cgi/small_custview.html +++ b/fs_selfservice/FS-SelfService/cgi/small_custview.html @@ -1,6 +1,6 @@
-Customer #<%= $custnum %> +Customer #<%= $display_custnum %> - <%= ucfirst($status)%> @@ -59,10 +59,17 @@ Customer #<%= $custnum %>
-<%= unless ( $access_pkgnum ) { - $OUT .= '
Balance: $'. $balance. '
'; - } - ''; +<%= +unless ( $access_pkgnum ) { + if ($balance >= 0) { + $OUT .= '
Balance: '. $balance_pretty . '
'; + } else { + my $credit_balance_pretty = $balance_pretty; + $credit_balance_pretty =~ s/-//; + $OUT .= '
Credit Balance: '. $credit_balance_pretty . '
'; + } +} +''; %>