summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2017-01-10 16:09:49 -0800
committerIvan Kohler <ivan@freeside.biz>2017-01-10 16:09:49 -0800
commitab83ed2eed479b689060e686098998df990dd140 (patch)
treed2084f2177ec016ac8b58d5c89b51a5166dea3f3
parent133546cdadf999b58a43e8e1b8ceb5f493e187d6 (diff)
fix errors about expired cards from automatic encryption enabling, RT#74905, RT#74085
-rw-r--r--FS/FS/cust_main.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 551f8b345..21dce1fda 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -5790,6 +5790,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;
}