RT# 77792 - V3 backport fix to access paytype
authorChristopher Burger <burgerc@freeside.biz>
Thu, 17 May 2018 16:40:43 +0000 (12:40 -0400)
committerChristopher Burger <burgerc@freeside.biz>
Thu, 17 May 2018 16:40:43 +0000 (12:40 -0400)
FS/FS/pay_batch/RBC.pm

index 14b9993..142c50b 100644 (file)
@@ -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).