X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fsmall_custview.html;h=329f82e90de937c9674dc90b251960cf77853d5e;hb=b18e96a9a39a8ec2cb3298bb1cfcab13622d23ab;hp=308eae9283c521ef53aebbb39fbeb1a05eed0d87;hpb=fe51a669f4f72c3c932a1fec138b60632666f982;p=freeside.git diff --git a/fs_selfservice/FS-SelfService/cgi/small_custview.html b/fs_selfservice/FS-SelfService/cgi/small_custview.html index 308eae928..329f82e90 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 . '
'; + } +} +''; %>