[freeside-commits] branch FREESIDE_3_BRANCH updated. c00f1599f98baf0bd69745f34ad6a54ec8fea8eb

Jeremy Davis jeremyd at 420.am
Tue Mar 4 06:47:15 PST 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  c00f1599f98baf0bd69745f34ad6a54ec8fea8eb (commit)
      from  5db40d4e6b6d91c7bcf81f8938b080ed3d60ae04 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c00f1599f98baf0bd69745f34ad6a54ec8fea8eb
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Tue Mar 4 09:46:32 2014 -0500

    #27794 Fix batch totals in NACHA format

diff --git a/FS/FS/pay_batch/nacha.pm b/FS/FS/pay_batch/nacha.pm
index 0662c3f..d6786e0 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
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/pay_batch/nacha.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list