diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-01-29 17:30:16 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-01-29 17:30:16 -0800 |
commit | 9dceb6f7ec4da76a1526f5257193eb62e69b34bc (patch) | |
tree | c1bc5661ab1164a2f7aacaca7cd321a3adc6cde2 | |
parent | d4db0d673c93c4cc11d7234bbb0f79373472a528 (diff) |
fix error return / db rollback with freeside-daily -m, RT#26773
-rw-r--r-- | FS/FS/cust_main.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 0da2364f1..054d6c21f 100644 --- 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 ); } |