From c2bcd30a9cf76008d21706bab99b6209f76a9f5a Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Thu, 17 May 2018 12:40:43 -0400 Subject: [PATCH] RT# 77792 - V3 backport fix to access paytype --- FS/FS/pay_batch/RBC.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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). -- 2.11.0