diff --git a/iatBatch.go b/iatBatch.go index c94ba474a..a0d07bbcd 100644 --- a/iatBatch.go +++ b/iatBatch.go @@ -511,7 +511,6 @@ func (batch *IATBatch) Validate() error { for _, entry := range batch.Entries { switch entry.Category { - case CategoryForward: if len(entry.Addendum) > 7 { return &BatchError{BatchNumber: batch.Header.BatchNumber, FieldName: "Addendum", Msg: msgBatchIATAddendum} @@ -538,6 +537,7 @@ func (batch *IATBatch) Validate() error { return &BatchError{BatchNumber: batch.Header.BatchNumber, FieldName: "Addendum", Msg: msg} } case "98": + // Only one Addenda98 can be added in EntryDetail.AddIATAddenda if batch.GetHeader().IATIndicator != "IATCOR" { msg := fmt.Sprintf(msgBatchIATNOC, batch.GetHeader().IATIndicator, "IATCOR") return &BatchError{BatchNumber: batch.Header.BatchNumber, FieldName: "IATIndicator", Msg: msg}