summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Davis <jeremyd@freeside.biz>2014-03-04 09:46:32 -0500
committerJeremy Davis <jeremyd@freeside.biz>2014-03-04 09:46:32 -0500
commitc00f1599f98baf0bd69745f34ad6a54ec8fea8eb (patch)
treec92ac98c0e460310b445b129e72f318d6fed35e5
parent5db40d4e6b6d91c7bcf81f8938b080ed3d60ae04 (diff)
#27794 Fix batch totals in NACHA format
-rw-r--r--FS/FS/pay_batch/nacha.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/pay_batch/nacha.pm b/FS/FS/pay_batch/nacha.pm
index 0662c3fd5..d6786e035 100644
--- a/FS/FS/pay_batch/nacha.pm
+++ b/FS/FS/pay_batch/nacha.pm
@@ -185,7 +185,7 @@ $DEBUG = 0;
# 200 mixed debits&credits)
sprintf('%06d', $batchcount). #Entry / Addenda Count
$entry_hash.
- sprintf('%012d', $batchtotal * 100). #Debit total
+ sprintf('%012.0f', $batchtotal * 100). #Debit total
'000000000000'. #Credit total
$origin. #Company Identification (Immediate Origin)
(' 'x19). #Message Authentication Code (19 char blank)
@@ -202,7 +202,7 @@ $DEBUG = 0;
sprintf('%06d', $batchcount + 4). #num of physical blocks on the file..?
sprintf('%08d', $batchcount). #total # of entry detail and addenda
$entry_hash.
- sprintf('%012d', $batchtotal * 100). #Debit total
+ sprintf('%012.0f', $batchtotal * 100). #Debit total
'000000000000'. #Credit total
( ' 'x39 ) #Reserved / blank