From: Jonathan Prykop Date: Wed, 28 Dec 2016 19:57:43 +0000 (-0600) Subject: 73085: Enable credit card/ach encryption on a live system [handling for custnum-less... X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=2c6ae1f63d3e3f66e06b15d275db0c688a974480 73085: Enable credit card/ach encryption on a live system [handling for custnum-less cust_pay_pending] --- diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 493b1c694..ee570da7e 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -5407,6 +5407,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; }