RT#28648: Unsuspend when past due balance is paid [v3 merge]
[freeside.git] / FS / FS / Upgrade.pm
index 05881b9..e6fa757 100644 (file)
@@ -156,6 +156,11 @@ If you need to continue using the old Form 477 report, turn on the
     $conf->set('password-generated-characters', $pw_set);
   }
 
+  if ($conf->exists('unsuspendauto') && !$conf->config('unsuspend_balance')) {
+    $conf->set('unsuspend_balance','Zero');
+    $conf->delete('unsuspendauto');
+  }
+
 }
 
 sub upgrade_overlimit_groups {