From: Ivan Kohler Date: Mon, 21 Oct 2019 20:05:48 +0000 (-0700) Subject: release held packages when automatically unsuspending, RT#83847 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=480fbd922ae2c943c7763012a08fb5e659ab94a7 release held packages when automatically unsuspending, RT#83847 --- diff --git a/FS/FS/cust_main_Mixin.pm b/FS/FS/cust_main_Mixin.pm index be57017e0..95a53420e 100644 --- a/FS/FS/cust_main_Mixin.pm +++ b/FS/FS/cust_main_Mixin.pm @@ -814,6 +814,8 @@ sub unsuspend_balance { my @errors = $cust_main->unsuspend( 'reason_type' => $conf->config('unsuspend_reason_type') ); + + push @errors, $cust_main->release_hold if $conf->exists('unsuspend-unhold'); # side-fx with nested transactions? upstack rolls back? warn "WARNING:Errors unsuspending customer ". $cust_main->custnum. ": ". join(' / ', @errors)