X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main.pm;h=1224c88da381c15bff4db2adc04f96b039ab1e67;hb=45583b397d64be8c31cba0334ad89e41f4ac1d0e;hp=e834d59e493cd4f770f4816ae750466f776f92b1;hpb=c42fe413bd1b9a38e4818dcd7117a8abeee674e8;p=freeside.git diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index e834d59e4..1224c88da 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -70,7 +70,7 @@ $skip_fuzzyfiles = 0; $ignore_expired_card = 0; @encrypted_fields = ('payinfo', 'paycvv'); -@paytypes = ('Personal checking', 'Personal savings', 'Business checking', 'Business savings'); +@paytypes = ('', 'Personal checking', 'Personal savings', 'Business checking', 'Business savings'); #ask FS::UID to run this stuff for us later #$FS::UID::callback{'FS::cust_main'} = sub { @@ -2612,9 +2612,12 @@ sub realtime_bop { ( $content{account_number}, $content{routing_code} ) = split('@', $payinfo); $content{bank_name} = $o_payname; - $content{account_type} = 'CHECKING'; + $content{bank_state} = $self->getfield('paystate'); + $content{account_type} = 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{customer_ssn} = exists($options{'ss'}) ? $options{'ss'} : $self->ss;