[freeside-commits] branch FREESIDE_3_BRANCH updated. ac3b5a577bcd664425b21c51ded61008e2fe8494
Ivan
ivan at 420.am
Tue Jul 2 10:16:26 PDT 2013
The branch, FREESIDE_3_BRANCH has been updated
via ac3b5a577bcd664425b21c51ded61008e2fe8494 (commit)
from e7ac4fa24474bd23d32226f8a4c170aee75a645d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ac3b5a577bcd664425b21c51ded61008e2fe8494
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Jul 2 10:16:25 2013 -0700
B:OP:AuthorizeNet (and others?) account_name: send company name instead of first+last for business accounts, RT#23586
diff --git a/FS/FS/cust_main/Billing_Realtime.pm b/FS/FS/cust_main/Billing_Realtime.pm
index 1caa3e5..6e89f71 100644
--- a/FS/FS/cust_main/Billing_Realtime.pm
+++ b/FS/FS/cust_main/Billing_Realtime.pm
@@ -507,8 +507,13 @@ sub realtime_bop {
(exists($options{'paytype'}) && $options{'paytype'})
? uc($options{'paytype'})
: uc($self->getfield('paytype')) || 'PERSONAL CHECKING';
- $content{account_name} = $self->getfield('first'). ' '.
- $self->getfield('last');
+
+ if ( $content{account_type} =~ /BUSINESS/i && $self->company ) {
+ $content{account_name} = $self->company;
+ } else {
+ $content{account_name} = $self->getfield('first'). ' '.
+ $self->getfield('last');
+ }
$content{customer_org} = $self->company ? 'B' : 'I';
$content{state_id} = exists($options{'stateid'})
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_main/Billing_Realtime.pm | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list