X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fsmall_custview.html;h=bcbdbdaa6acc16d6705e248d04040526fa37e68a;hb=c66b912fd7f13f5fb0f2cc433f22b78d3ec5b56b;hp=8d6e07368dec8b937cb7125ed5bf02d2c4d1d95c;hpb=cace6fef1d121d43d76166851aaa30c6c15857e5;p=freeside.git
diff --git a/fs_selfservice/FS-SelfService/cgi/small_custview.html b/fs_selfservice/FS-SelfService/cgi/small_custview.html
index 8d6e07368..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 %>
@@ -10,10 +10,10 @@ Customer #<%= $custnum %>
? 'Billing Address
'
: ''
%>
- <%= $first %> <%= $last %>
- <%= $company ? $company.'
' : '' %>
- <%= $address1 %>
- <%= $address2 ? $address2.'
' : '' %>
+ <%= encode_entities($first) %> <%= encode_entities($last) %>
+ <%= $company ? encode_entities($company).'
' : '' %>
+ <%= encode_entities($address1) %>
+ <%= $address2 ? encode_entities($address2).'
' : '' %>
<%= $city %>, <%= $state %> <%= $zip %>
<%= $country && $country ne ($countrydefault||'US')
? $country.'
'
@@ -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 . '';
+ }
+}
+'';
%>