From b18e96a9a39a8ec2cb3298bb1cfcab13622d23ab Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Mon, 6 Jul 2015 21:16:33 -0500 Subject: RT#24684: Payments for Online Bill Pay --- fs_selfservice/FS-SelfService/cgi/small_custview.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'fs_selfservice/FS-SelfService/cgi') 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 . '
'; + } +} +''; %> -- cgit v1.2.1