diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-12-28 13:57:43 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-12-28 14:19:33 -0600 |
commit | c20f91e20a83c338e36a859ca07c73b94a3a38de (patch) | |
tree | 1ad997d323bb17e3e5ed81484bce8ca8eb26a916 /FS/FS/cust_main.pm | |
parent | 691b4de7c0a7d0e39bebe2ea7fadea5fb21b1539 (diff) |
73085: Enable credit card/ach encryption on a live system [handling for custnum-less cust_pay_pending]
Diffstat (limited to 'FS/FS/cust_main.pm')
-rw-r--r-- | FS/FS/cust_main.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 4bd3f26..5b113f8 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -5837,6 +5837,9 @@ sub queueable_upgrade { # window for possible conflict is practically nonexistant, # but just in case... $record = $record->select_for_update; + if (!$record->custnum && $table eq 'cust_pay_pending') { + $record->set('custnum_pending',1); + } my $error = $record->replace; die $error if $error; } |