[freeside-commits] branch FREESIDE_3_BRANCH updated. 59c6ea17f901fb345ee9a75702b23b003c9c44ec
Ivan
ivan at 420.am
Wed Jan 29 17:30:18 PST 2014
The branch, FREESIDE_3_BRANCH has been updated
via 59c6ea17f901fb345ee9a75702b23b003c9c44ec (commit)
from 7d49cde5f52872471f9281ed2459fbf3f8453172 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 59c6ea17f901fb345ee9a75702b23b003c9c44ec
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Jan 29 17:30:17 2014 -0800
fix error return / db rollback with freeside-daily -m, RT#26773
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 43be568..08a5297 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 );
}
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_main.pm | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
More information about the freeside-commits
mailing list