kputnam / stupidedi

Ruby API for parsing and generating ASC X12 EDI transactions
BSD 3-Clause "New" or "Revised" License
262 stars 137 forks source link

835 - 005010X221A1 - NTE segment error #262

Closed chasestory closed 1 year ago

chasestory commented 1 year ago

I am trying to add a NTE segment to provide more information in a denial. But the error I get

"segment NTE cannot occur here at file" NTE segments are allowed in the spec. Not sure if I can add this to be accepted by the builder?

chasestory commented 1 year ago

I opened a PR for this. https://github.com/kputnam/stupidedi/pull/263

kputnam commented 1 year ago

I am closing this because NTE is not part of the standard, as mentioned in my comment on the PR. Let me know if you have problems creating your own customized 835 grammar.