101 999999999 6666666662011031627A094101BANK NAME BANK NAME
5200COMPANY NAME 1123456789PPDDESCRIPTIO201103201104 1777777770000001
62211111111122222222222 0000000101EMPLOYEE NAME EMPLOYEE NAME 0000000000000001
62211111111122222222222 0000000101EMPLOYEE NAME EMPLOYEE NAME 0000000000000001
62211111111122222222222 0000000101EMPLOYEE NAME EMPLOYEE NAME 0000000000000001
62211111111122222222222 0000000101EMPLOYEE NAME EMPLOYEE NAME 0000000000000001
62711111111122222222222 0000000404 OFFSET 0333333330000001
820000000500555555550000000004040000000004041123456789 777777770000001
9000001000001000000050055555555000000000404000000000404
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
At CityBase, one of our clients asked us to transfer NACHA files with a balancing entry detail row, aka a balanced ACH file
What is a balanced ACH file, and how does it differ from how we (and this gem) generate ACH files now?
I'll simply quote from this site's documentation
I've also relied on https://www.treasurysoftware.com/ACH/ACH-File-Offset-Record-Balanced.aspx for documentation on how to construct an balanced ACH file
You would create a balancing entry detail row like this
I've modified batch.rb to check to see if the last entry in a batch is a balanced entry, and to alter the credits and debit totals accordingly in the control row.
Here's an example of a balanced ACH file