summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-03-17 00:21:01 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-03-17 01:00:58 -0500
commit6b285a7d0b37bb1dfd1972eead37a45bff977651 (patch)
tree9fbd9df2d67eabd8372c719659f022c877cbd89d
parent6b7eaf2053e63569f1d8475fc16d603fa3995646 (diff)
RT#28648: Unsuspend when past due balance is paid [more cleanup for backport]
-rw-r--r--FS/FS/cust_main_Mixin.pm2
1 files changed, 0 insertions, 2 deletions
diff --git a/FS/FS/cust_main_Mixin.pm b/FS/FS/cust_main_Mixin.pm
index fcd2c0bfd..645971ce0 100644
--- a/FS/FS/cust_main_Mixin.pm
+++ b/FS/FS/cust_main_Mixin.pm
@@ -673,8 +673,6 @@ sub unsuspend_balance {
}
my $balance = $cust_main->balance || 0;
if ($balance <= $maxbalance) {
- # or should this be
- # my @errors = grep { ($_->get('setup')) && $_->unsuspend } $cust_main->unflagged_suspended_pkgs;
my @errors = $cust_main->unsuspend;
# side-fx with nested transactions? upstack rolls back?
warn "WARNING:Errors unsuspending customer ". $cust_main->custnum. ": ".