[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.56, 1.57

Ivan,,, ivan at wavetail.420.am
Wed Aug 1 12:19:56 PDT 2007


Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail:/tmp/cvs-serv10496/FS/FS/ClientAPI

Modified Files:
	MyAccount.pm 
Log Message:
better error reporting: all three of these methods might return an error

Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- MyAccount.pm	29 Apr 2007 22:55:13 -0000	1.56
+++ MyAccount.pm	1 Aug 2007 19:19:54 -0000	1.57
@@ -910,10 +910,9 @@
 
     my $old_balance = $cust_main->balance;
 
-    my $bill_error = $cust_main->bill;
-
-    $cust_main->apply_payments_and_credits;
-    $bill_error = $cust_main->collect('realtime' => 1);
+    my $bill_error =    $cust_main->bill
+                     || $cust_main->apply_payments_and_credits
+                     || $cust_main->collect('realtime' => 1);
 
     if (    $cust_main->balance > $old_balance
          && $cust_main->balance > 0



More information about the freeside-commits mailing list