From: Christopher Burger Date: Thu, 17 May 2018 16:40:43 +0000 (-0400) Subject: RT# 77792 - V3 backport fix to access paytype X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=c2bcd30a9cf76008d21706bab99b6209f76a9f5a RT# 77792 - V3 backport fix to access paytype --- diff --git a/FS/FS/pay_batch/RBC.pm b/FS/FS/pay_batch/RBC.pm index 14b9993fc..142c50b79 100644 --- a/FS/FS/pay_batch/RBC.pm +++ b/FS/FS/pay_batch/RBC.pm @@ -177,7 +177,7 @@ $name = 'RBC'; ## set custname to business name if business checking or savings account is used otherwise leave as first and last name. my $custname = $cust_pay_batch->cust_main->first . ' ' . $cust_pay_batch->cust_main->last; $custname = $cust_pay_batch->cust_main->company - if (($cust_pay_batch->{Hash}->{paytype} eq "Business checking" || $cust_pay_batch->{Hash}->{paytype} eq "Business savings") && $cust_pay_batch->cust_main->company); + if (($cust_pay_batch->cust_main->paytype eq "Business checking" || $cust_pay_batch->cust_main->paytype eq "Business savings") && $cust_pay_batch->cust_main->company); $i++; sprintf("%06u", $i).