summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2019-10-21 13:05:48 -0700
committerIvan Kohler <ivan@freeside.biz>2019-10-21 13:05:48 -0700
commit480fbd922ae2c943c7763012a08fb5e659ab94a7 (patch)
tree30745ccb3333178294cad6d9e6caca0954f47df3
parent81f7d2d735b1f1b539224ec3b90ddf6af41b648a (diff)
release held packages when automatically unsuspending, RT#83847
-rw-r--r--FS/FS/cust_main_Mixin.pm2
1 files changed, 2 insertions, 0 deletions
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)