projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5db40d4
)
#27794 Fix batch totals in NACHA format
author
Jeremy Davis
<jeremyd@freeside.biz>
Tue, 4 Mar 2014 14:46:32 +0000
(09:46 -0500)
committer
Jeremy Davis
<jeremyd@freeside.biz>
Tue, 4 Mar 2014 14:46:32 +0000
(09:46 -0500)
FS/FS/pay_batch/nacha.pm
patch
|
blob
|
history
diff --git
a/FS/FS/pay_batch/nacha.pm
b/FS/FS/pay_batch/nacha.pm
index
0662c3f
..
d6786e0
100644
(file)
--- 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.
# 200 mixed debits&credits)
sprintf('%06d', $batchcount). #Entry / Addenda Count
$entry_hash.
- sprintf('%012
d
', $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)
'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('%06d', $batchcount + 4). #num of physical blocks on the file..?
sprintf('%08d', $batchcount). #total # of entry detail and addenda
$entry_hash.
- sprintf('%012
d
', $batchtotal * 100). #Debit total
+ sprintf('%012
.0f
', $batchtotal * 100). #Debit total
'000000000000'. #Credit total
( ' 'x39 ) #Reserved / blank
'000000000000'. #Credit total
( ' 'x39 ) #Reserved / blank