summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2017-05-19 09:10:30 -0400
committerChristopher Burger <burgerc@freeside.biz>2019-04-01 10:47:32 -0400
commitf70d108014b903246d4f13a04b6be717b328274e (patch)
tree4821b7f123bb18334982c55a689ec370282b9086 /FS
parent833839f66761df30a0b0b965ed4314cce32f8f3d (diff)
RT# 74789 - Updated electronic check batch td_eft1464 format to except refunds (bank credit).
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/pay_batch/td_eft1464.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/FS/FS/pay_batch/td_eft1464.pm b/FS/FS/pay_batch/td_eft1464.pm
index 93612f1ea..3c60035ce 100644
--- a/FS/FS/pay_batch/td_eft1464.pm
+++ b/FS/FS/pay_batch/td_eft1464.pm
@@ -107,8 +107,13 @@ $name = 'td_eft1464';
$i++;
# The 1464 byte format supports up to 5 payments per line,
# but we're only going to send 1.
+
+ ## 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;
+
my $control = join('',
- 'D', # for 'debit'
+ $debitorcredit, # D for 'debit' or C for Credit
sprintf("%09u", $i), #record number
$opt{'origid'},
$opt{'fcn'},