diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-12-28 13:57:43 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2017-01-03 20:53:52 -0600 |
commit | 6a7573c32518c6c124c91f61dbd950ea23adaae7 (patch) | |
tree | ac17827ef0c9d59df9825ac35a5be9b37677f49c | |
parent | cf9e2c1748c2790e3ed5bfb27ea892a402fcb9a9 (diff) |
73085: Enable credit card/ach encryption on a live system [handling for custnum-less cust_pay_pending]
-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 2343fc67b..551f8b345 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -5787,6 +5787,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; } |