diff options
author | jeff <jeff> | 2007-07-11 04:23:15 +0000 |
---|---|---|
committer | jeff <jeff> | 2007-07-11 04:23:15 +0000 |
commit | d549dfc1e276be35b1903f112c8334ccb7105e8e (patch) | |
tree | 7e3474301b7bed345b0815ffd2a5a3941b6349f4 | |
parent | 02f8b98d3a6c353a61ba06af2ad48ad644e0941b (diff) |
honor bop_realtime options for paystate, paytype, stateid, and stateid_state for CHEK transactions (#1718)
-rw-r--r-- | FS/FS/cust_main.pm | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 6374b84c9..097585ea0 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -2613,12 +2613,20 @@ sub realtime_bop { ( $content{account_number}, $content{routing_code} ) = split('@', $payinfo); $content{bank_name} = $o_payname; - $content{bank_state} = $self->getfield('paystate'); - $content{account_type} = uc($self->getfield('paytype')) || 'CHECKING'; + $content{bank_state} = exists($options{'paystate'}) + ? $options{'paystate'} + : $self->getfield('paystate'); + $content{account_type} = exists($options{'paytype'}) + ? uc($options{'paytype'}) || 'CHECKING' + : uc($self->getfield('paytype')) || 'CHECKING'; $content{account_name} = $payname; $content{customer_org} = $self->company ? 'B' : 'I'; - $content{state_id} = $self->getfield('stateid'); - $content{state_id_state} = $self->getfield('stateid_state'); + $content{state_id} = exists($options{'stateid'}) + ? $options{'stateid'} + : $self->getfield('stateid'); + $content{state_id_state} = exists($options{'stateid_state'}) + ? $options{'stateid_state'} + : $self->getfield('stateid_state'); $content{customer_ssn} = exists($options{'ss'}) ? $options{'ss'} : $self->ss; |