Have lineitem-specific applications happen in all cases; add weightsto control
[freeside.git] / FS / FS / ClientAPI / MyAccount.pm
index 8b6a466..0ab1d8a 100644 (file)
@@ -877,8 +877,7 @@ sub _do_bop_realtime {
 
     my $bill_error = $cust_main->bill;
 
-    $cust_main->apply_payments;
-    $cust_main->apply_credits;
+    $cust_main->apply_payments_and_credits;
     $bill_error = $cust_main->collect('realtime' => 1);
 
     if (    $cust_main->balance > $old_balance