ekonbenefits / NachaSharp

Nacha Format Reader/Writer for .NET
Apache License 2.0
10 stars 2 forks source link

Fix datafile, it wasn't a valid PPD file because there's too many Addenda records #10

Closed abelbraaksma closed 2 years ago

abelbraaksma commented 2 years ago

A REC of PPD can have 0 or 1 Addenda records per Entry record. The test file is a PPD file, but contains 7 addenda records for certain Entry records. While this doesn't (currently) fail any tests, the file is illegal per the spec. Furthermore, and Addenda record in a PPD file should start with "705". The Addenda records here don't do that.

Changing it from PPD to CTX (or IAT, which may be more appropriate, not sure), which is a REC that allows any number of addenda, the file is now valid.

abelbraaksma commented 2 years ago

Thanks for the quick merge again! 👍