X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fsmall_custview.html;h=bcbdbdaa6acc16d6705e248d04040526fa37e68a;hp=470fe7151b15bc48cb14bab53c5baf4e1810c0b6;hb=f822e27a1e00594332ffa487a1c284234c5580a6;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125 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 . '
'; + } +} +''; %>