Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to validate a file #9

Open
jwoertink opened this issue Dec 23, 2022 · 1 comment
Open

Add a way to validate a file #9

jwoertink opened this issue Dec 23, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@jwoertink
Copy link
Owner

Maybe something like

Nacha::Validator.new.validate(file_data) #=> <#Nacha::ValidationFailures @file_control="mismatch whatever" >

For example, the File Control total debit / credit are a sum of the entires. This shard should be able to see if that value in the File Control is actually correct. Or checking that the company identification in the batch control is the same in the batch header. There's a few other spots where data is either calculated, or substring that can be checked against.

@jwoertink jwoertink added the enhancement New feature or request label Dec 23, 2022
@jwoertink jwoertink changed the title Add a way to validate a build file Add a way to validate a file Dec 23, 2022
@jwoertink
Copy link
Owner Author

Found this repo https://github.com/thunderblaster/nacha-file-viewer which is pretty cool. Would be neat to generate a flat HTML file that can be loaded up and easily see issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant