diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2019-10-21 13:05:45 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2019-10-21 13:05:45 -0700 |
| commit | bfc7da9a45a81bdc9a8f645be91541c2492d6118 (patch) | |
| tree | 570c7df2c9543d4e4def06c36f422e1a0bfff7e0 | |
| parent | 3e5eb9e6318bd6e51546b4453ed9c872f4146fa6 (diff) | |
release held packages when automatically unsuspending, RT#83847
| -rw-r--r-- | FS/FS/cust_main_Mixin.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/FS/FS/cust_main_Mixin.pm b/FS/FS/cust_main_Mixin.pm index b5434e516..921ef8f5e 100644 --- a/FS/FS/cust_main_Mixin.pm +++ b/FS/FS/cust_main_Mixin.pm @@ -836,6 +836,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) |
