projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4db0d6
)
fix error return / db rollback with freeside-daily -m, RT#26773
author
Ivan Kohler
<ivan@freeside.biz>
Thu, 30 Jan 2014 01:30:16 +0000
(17:30 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Thu, 30 Jan 2014 01:30:16 +0000
(17:30 -0800)
FS/FS/cust_main.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_main.pm
b/FS/FS/cust_main.pm
index
0da2364
..
054d6c2
100644
(file)
--- a/
FS/FS/cust_main.pm
+++ b/
FS/FS/cust_main.pm
@@
-5053,6
+5053,9
@@
sub queued_bill {
my $cust_main = qsearchs( 'cust_main', { custnum => $args{'custnum'} } );
warn 'bill_and_collect custnum#'. $cust_main->custnum. "\n";#log custnum w/pid
+ #without this errors don't get rolled back
+ $args{'fatal'} = 1; # runs from job queue, will be caught
+
$cust_main->bill_and_collect( %args );
}