diff options
author | ivan <ivan> | 2006-10-30 12:39:16 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-10-30 12:39:16 +0000 |
commit | e6d20615692495e78975a958af76bfef06d427f5 (patch) | |
tree | 360d91c30bcc52e01d7d39ac3147426fb4f9304e /FS | |
parent | 87fddb631d080aebabe0814afa802b4ae155d708 (diff) |
realtime_bop: don't pass an empty invoice_number to B:OP, omit the field entirely
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_main.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index febeb13f5..e7d9272c3 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -2518,6 +2518,9 @@ sub realtime_bop { $content{customer_ip} = $payip if length($payip); + $content{invoice_number} = $options{'invnum'} + if exists($options{'payip'}) && length($options{'invnum'}); + if ( $method eq 'CC' ) { $content{card_number} = $payinfo; @@ -2583,7 +2586,7 @@ sub realtime_bop { 'action' => $action1, 'description' => $options{'description'}, 'amount' => $amount, - 'invoice_number' => $options{'invnum'}, + #'invoice_number' => $options{'invnum'}, 'customer_id' => $self->custnum, 'last_name' => $paylast, 'first_name' => $payfirst, |