diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-03-26 12:58:40 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-03-26 12:58:40 -0700 |
commit | 262b72cb1a8052daf7ae7246af15965f6ed78109 (patch) | |
tree | dc896f38faf7478a1ca362bd3e2b39810f0a4844 /FS | |
parent | 9faa6b1e007238ea1d953dfffa5c9089253b420c (diff) |
freeside inc. web services for address normalizaion and printing, RT#33849
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/part_event/Action/cust_bill_fsinc_print.pm | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/FS/FS/part_event/Action/cust_bill_fsinc_print.pm b/FS/FS/part_event/Action/cust_bill_fsinc_print.pm index 2ef564b7e..02e1e5a40 100644 --- a/FS/FS/part_event/Action/cust_bill_fsinc_print.pm +++ b/FS/FS/part_event/Action/cust_bill_fsinc_print.pm @@ -4,7 +4,7 @@ use strict; use base qw( FS::part_event::Action ); use LWP::UserAgent; use HTTP::Request::Common qw( POST ); -use JSON::XS; #use Cpanel::JSON::XS; +use Cpanel::JSON::XS; use CAM::PDF; use FS::Conf; @@ -78,12 +78,8 @@ sub do_action { 'company_email' => scalar($conf->config('invoice_from', $agentnum)), #to: - 'name' => ( $cust_main->payname - && $cust_main->payby !~ /^(CARD|DCRD|CHEK|DCHK)$/ - ? $cust_main->payname - : $cust_main->contact_firstlast - ) - #'name' => $cust_main->invoice_attn || $cust_main->contact_firstlast, + 'name' => $cust_main->invoice_attn + || $cust_main->contact_firstlast, 'address1' => $bill_location->address1, 'address2' => $bill_location->address2, 'city' => $bill_location->city, @@ -101,6 +97,7 @@ sub do_action { die $content->{error}."\n" if $content->{error}; + } 1; |