From: ivan Date: Sat, 24 Jan 2009 21:53:35 +0000 (+0000) Subject: have the prepay amounts include the current balance, RT#4623 X-Git-Tag: root_of_webpay_support~111 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=09cdee33633126e346d69d6f6ee3ebc8aacf9498;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 213f6b45b..a85d63efe 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -1120,7 +1120,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;