X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fsmall_custview.html;h=bcbdbdaa6acc16d6705e248d04040526fa37e68a;hb=877a4eb85cb847bd314d6a9192fedb1dc35c5d02;hp=470fe7151b15bc48cb14bab53c5baf4e1810c0b6;hpb=d295c1176370d42a4754c26debfed390e0829f15;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..bcbdbdaa6 100644 --- a/fs_selfservice/FS-SelfService/cgi/small_custview.html +++ b/fs_selfservice/FS-SelfService/cgi/small_custview.html @@ -1,7 +1,7 @@
-Customer #<%= $custnum %> - - <%= ucfirst($status)%> +Customer #<%= $display_custnum %> + - <%= $status_label %> @@ -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 . '
'; + } +} +''; %>