projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
79c8be3
)
release held packages when automatically unsuspending, RT#83847
author
Ivan Kohler
<ivan@freeside.biz>
Mon, 21 Oct 2019 20:05:38 +0000
(13:05 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Mon, 21 Oct 2019 20:05:38 +0000
(13:05 -0700)
FS/FS/cust_main_Mixin.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_main_Mixin.pm
b/FS/FS/cust_main_Mixin.pm
index
b5434e5
..
921ef8f
100644
(file)
--- 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')
);
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)
# side-fx with nested transactions? upstack rolls back?
warn "WARNING:Errors unsuspending customer ". $cust_main->custnum. ": ".
join(' / ', @errors)