Have lineitem-specific applications happen in all cases; add weightsto control
[freeside.git] / FS / FS / Cron / bill.pm
index 774bf30..fb9e549 100644 (file)
@@ -106,8 +106,7 @@ END
                                 );
     warn "Error billing, custnum ". $cust_main->custnum. ": $error" if $error;
   
-    $cust_main->apply_payments;
-    $cust_main->apply_credits;
+    $cust_main->apply_payments_and_credits;
   
     $error = $cust_main->collect( 'invoice_time' => $time,
                                   'freq'         => $opt{'freq'},