diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-01-10 16:09:43 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-01-10 16:09:43 -0800 |
commit | 561acfcfe03d8e7057f5995c86e6d33f94679d42 (patch) | |
tree | c3b3bd19ff2a5655461e21b77ee74782e73f9bdd | |
parent | 2134f9e82324c8920609aa0854abc84b9e5348ae (diff) |
fix errors about expired cards from automatic encryption enabling, RT#74905, RT#74085
-rw-r--r-- | FS/FS/cust_main.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index ee570da7e..5ffc84a79 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -5410,6 +5410,12 @@ sub queueable_upgrade { if (!$record->custnum && $table eq 'cust_pay_pending') { $record->set('custnum_pending',1); } + + local($ignore_expired_card) = 1; + local($ignore_banned_card) = 1; + local($skip_fuzzyfiles) = 1; + local($import) = 1;#prevent automatic geocoding (need its own variable?) + my $error = $record->replace; die $error if $error; } |