afrunt / jach

Java library for reading and writing ACH/NACHA documents
Apache License 2.0
44 stars 37 forks source link

ACH Trace Number Field Issue #20

Open Jawwad124 opened 4 years ago

Jawwad124 commented 4 years ago

I am having trouble with ACH Trace number field being Long. We have requirement to process an ODFI which has a routing number starting from 0. Given the bank is asking for standard ACH trace number format like this :

A 15-digit number in which positions 1-8 are the first eight digits of the originator's routing number, and positions 9-15 are numbers assigned in ascending order to each transaction within the Company / Batch Header Record. (80-94) 15 numeric.

When i try to use first 8 digits of ODFI number starting from 0 leading zero get omitted from trace number.

Similarly for return addenda having Original Entry Trace number. I am not sure why these fields are adding as Long and Big Integer. But can we please convert these to String. Making life easier for people processing files for ODFI having such routing numbers ?

afrunt commented 4 years ago

@Jawwad124 feel free to make a pull request 😉