From: ivan Date: Sat, 24 Jan 2009 21:53:38 +0000 (+0000) Subject: have the prepay amounts include the current balance, RT#4623 X-Git-Tag: freeside_1_7_4rc1~118 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=6e68833ae99f82bf310fd25b5668c2f4ae646b52;p=freeside.git have the prepay amounts include the current balance, RT#4623 --- diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index f8e26d213..c953c62f6 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -1030,7 +1030,7 @@ sub renew_info { #return { 'error' => 'No active packages to renew.' } unless @cust_pkg; - my $total = 0; + my $total = $cust_main->balance; my @array = map { $total += $_->part_pkg->base_recur;