X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fsmall_custview.html;h=bcbdbdaa6acc16d6705e248d04040526fa37e68a;hb=80f265ee8f2603f0e3f7f5ad6c6c0cf704f98cb8;hp=919df5631a9bed27e08d635c8bd4da29d71188c6;hpb=52a824f9b11ca266be10c76894eaf6607344c8d0;p=freeside.git
diff --git a/fs_selfservice/FS-SelfService/cgi/small_custview.html b/fs_selfservice/FS-SelfService/cgi/small_custview.html
index 919df5631..bcbdbdaa6 100644
--- a/fs_selfservice/FS-SelfService/cgi/small_custview.html
+++ b/fs_selfservice/FS-SelfService/cgi/small_custview.html
@@ -59,10 +59,17 @@ Customer #<%= $display_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 . '
';
+ }
+}
+'';
%>