Closed vishwasbabu closed 2 years ago
While it is true that Ideally the batches for POP and ARC should have had Service Class Code set to 225 / Debits Only, It does look like there are ACH Originators who set the Service Class Code for a batch to Mixed Debits and Credits (200) and send out only Debits. Maybe we should modify the strict validation the Moov library does at https://github.com/moov-io/ach/blob/master/batchPOP.go#L65 to allow the same?
I have sent MR.
I've released v1.19.2 with this fix. Thanks again!
ACH Version:
v1.18.6
What were you trying to do? Trying to parse valid NACHA files we received from a correspondent bank. The NACHA files themselves were very similar to the MOOV examples for https://github.com/moov-io/ach/blob/master/test/ach-arc-read/arc-debit.ach and https://github.com/moov-io/ach/blob/master/test/ach-pop-read/pop-debit.ach with one change, the Service Class Code being set to 200
What did you expect to see? The files being parsed successfully
What did you see? A validation error stating
How can we reproduce the problem? Replace the SCC on https://github.com/moov-io/ach/blob/master/test/ach-pop-read/pop-debit.ach with 200 and try parsing the file