IAT reader modifications
IAT reader modifications
@@ -136,13 +136,27 @@ func (r *Reader) parseLine() error {
return err
}
case batchHeaderPos:
+ switch r.line[50:53] {
+ case "IAT":
+ if err := r.parseIATBatchHeader(); err != nil {
+ return err
+ }
+ default:
if err := r.parseBatchHeader(); err != nil {
return err
}
+ }
case entryDetailPos:
+ switch r.line[16:29] {
+ case " ":
+ if err := r.parseIATEntryDetail(); err != nil {
+ return err
+ }
+ default:
if err := r.parseEntryDetail(); err != nil {
return err
}
+ }
case entryAddendaPos:
if err := r.parseAddenda(); err != nil {
return err
