diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-01-29 17:30:17 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-01-29 17:30:17 -0800 |
commit | 59c6ea17f901fb345ee9a75702b23b003c9c44ec (patch) | |
tree | 1e1aae4f65cab6496ed3ec3e4f2f72ab8deaf7a5 | |
parent | 7d49cde5f52872471f9281ed2459fbf3f8453172 (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 43be5682b..08a529707 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 ); } |