summaryrefslogtreecommitdiff
path: root/FS/FS/pay_batch
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2018-05-18 11:41:21 -0400
committerChristopher Burger <burgerc@freeside.biz>2018-05-18 11:46:11 -0400
commit9baab880cb616a2b9bd7812306563e2f13a4880d (patch)
tree76e36daf716c00fca001d8056be27e6d662c39ae /FS/FS/pay_batch
parente96f711e84bba96db24a91a1053e8a48e807b816 (diff)
RT# 77792 - Created method to decide if batch payname should be name on card or personal name or business name.
Diffstat (limited to 'FS/FS/pay_batch')
-rw-r--r--FS/FS/pay_batch/RBC.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/FS/FS/pay_batch/RBC.pm b/FS/FS/pay_batch/RBC.pm
index 14b9993..18a6170 100644
--- a/FS/FS/pay_batch/RBC.pm
+++ b/FS/FS/pay_batch/RBC.pm
@@ -175,9 +175,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);
+ my $custname = $cust_pay_batch->cust_main->batch_payment_payname($cust_pay_batch);
$i++;
sprintf("%06u", $i).