afrunt / jach

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

Trailing 9s #3

Closed BojanSM closed 6 years ago

BojanSM commented 6 years ago

@afrunt, did you plan to implement trailing lines of 9s?

We are producing ACH file which have rows containing only nines at bottom of the file. Purpose of these rows is to give us number of rows which is divisible by 10. So if our ACH file contains 13 lines of records we would add 7 lines of nines to fill the gap up to next number divisible by 10 and that is 20.

afrunt commented 6 years ago

@BojanSM you mean, that you want an option to add 7 lines filled with spaces after 13 real records?

BojanSM commented 6 years ago

Exactly, if there is 37, then 3, if 45 then 5, to match number divisible with 10.

afrunt commented 6 years ago

@BojanSM ok, I will grab some beer and will add this option in couple of hours today.

afrunt commented 6 years ago

@BojanSM done. version 0.2.4.6

screen shot 2018-06-16 at 10 06 55 pm
BojanSM commented 6 years ago

@afrunt thanks a lot. I am currently on vacation, but my team will be very grateful.

afrunt commented 6 years ago

@BojanSM enjoy, let me know if anything

curious-man commented 5 years ago

I have problem with this function. I got this file, when result with 9 lines.

afrunt commented 5 years ago

@curious-man could you provide some more details about the issue you faced with?