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=8d6e07368dec8b937cb7125ed5bf02d2c4d1d95c;hb=9aee669886202be7035e6c6049fc71bc99dd3013;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500 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 . '
'; + } +} +''; %>