From 573a1f97af61acd6d31c70321acbf7bb06bbcebf 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 [Credit Balance Display] --- 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 919df5631..bcbdbdaa6 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