diff options
-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 493b1c6..ee570da 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; } |