summaryrefslogtreecommitdiff
path: root/fs_selfservice
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-07-06 21:16:33 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-07-06 21:16:33 -0500
commit573a1f97af61acd6d31c70321acbf7bb06bbcebf (patch)
treeee7b732bc9e0b662ee99342ab828be75b1d235c6 /fs_selfservice
parent6400a0ec71fc47b217f4ab12bf95b74b77aeb260 (diff)
RT#24684: Payments for Online Bill Pay [Credit Balance Display]
Diffstat (limited to 'fs_selfservice')
-rw-r--r--fs_selfservice/FS-SelfService/cgi/small_custview.html15
1 files changed, 11 insertions, 4 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/small_custview.html b/fs_selfservice/FS-SelfService/cgi/small_custview.html
index 919df56..bcbdbda 100644
--- a/fs_selfservice/FS-SelfService/cgi/small_custview.html
+++ b/fs_selfservice/FS-SelfService/cgi/small_custview.html
@@ -59,10 +59,17 @@ Customer #<B><%= $display_custnum %></B>
</TR></TABLE>
-<%= unless ( $access_pkgnum ) {
- $OUT .= '<BR>Balance: <B>$'. $balance. '</B><BR>';
- }
- '';
+<%=
+unless ( $access_pkgnum ) {
+ if ($balance >= 0) {
+ $OUT .= '<BR>Balance: <B>'. $balance_pretty . '</B><BR>';
+ } else {
+ my $credit_balance_pretty = $balance_pretty;
+ $credit_balance_pretty =~ s/-//;
+ $OUT .= '<BR>Credit Balance: <B>'. $credit_balance_pretty . '</B><BR>';
+ }
+}
+'';
%>
</DIV>