projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cf9e2c1
)
73085: Enable credit card/ach encryption on a live system [handling for custnum-less...
author
Jonathan Prykop
<jonathan@freeside.biz>
Wed, 28 Dec 2016 19:57:43 +0000
(13:57 -0600)
committer
Jonathan Prykop
<jonathan@freeside.biz>
Wed, 4 Jan 2017 02:53:52 +0000
(20:53 -0600)
FS/FS/cust_main.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_main.pm
b/FS/FS/cust_main.pm
index
2343fc6
..
551f8b3
100644
(file)
--- 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;
# 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;
}
my $error = $record->replace;
die $error if $error;
}