From e6d20615692495e78975a958af76bfef06d427f5 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 30 Oct 2006 12:39:16 +0000 Subject: [PATCH] realtime_bop: don't pass an empty invoice_number to B:OP, omit the field entirely --- FS/FS/cust_main.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, -- 2.11.0