From 09cdee33633126e346d69d6f6ee3ebc8aacf9498 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 24 Jan 2009 21:53:35 +0000 Subject: [PATCH] have the prepay amounts include the current balance, RT#4623 --- FS/FS/ClientAPI/MyAccount.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1