projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
179a9b2
)
better error reporting: all three of these methods might return an error
author
ivan
<ivan>
Wed, 1 Aug 2007 19:19:54 +0000
(19:19 +0000)
committer
ivan
<ivan>
Wed, 1 Aug 2007 19:19:54 +0000
(19:19 +0000)
FS/FS/ClientAPI/MyAccount.pm
patch
|
blob
|
history
diff --git
a/FS/FS/ClientAPI/MyAccount.pm
b/FS/FS/ClientAPI/MyAccount.pm
index
9ee770b
..
bea31c5
100644
(file)
--- a/
FS/FS/ClientAPI/MyAccount.pm
+++ b/
FS/FS/ClientAPI/MyAccount.pm
@@
-910,10
+910,9
@@
sub _do_bop_realtime {
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