From 386c1c45a7cb9e8ad93862d9aa2d59cdb4ed0d3a Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Thu, 18 May 2017 11:58:26 -0400 Subject: RT# 74435 - Adding option to allow refunds using electronic check batch with RBC format. --- FS/FS/pay_batch/RBC.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'FS/FS/pay_batch') diff --git a/FS/FS/pay_batch/RBC.pm b/FS/FS/pay_batch/RBC.pm index b0136786b..21dae4256 100644 --- a/FS/FS/pay_batch/RBC.pm +++ b/FS/FS/pay_batch/RBC.pm @@ -175,8 +175,13 @@ $name = 'RBC'; } $i++; + + ## set to D for debit by default, then override to what cust_pay_batch has as payments may not have paycode. + my $debitorcredit = 'D'; + $debitorcredit = $cust_pay_batch->paycode unless !$cust_pay_batch->paycode; + sprintf("%06u", $i). - 'D'. + $debitorcredit. sprintf("%3s",$trans_code). sprintf("%10s",$client_num). ' '. -- cgit v1.2.1