have the prepay amounts include the current balance, RT#4623
authorivan <ivan>
Sat, 24 Jan 2009 21:53:35 +0000 (21:53 +0000)
committerivan <ivan>
Sat, 24 Jan 2009 21:53:35 +0000 (21:53 +0000)
FS/FS/ClientAPI/MyAccount.pm

index 213f6b4..a85d63e 100644 (file)
@@ -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;