From d19c6e9c4e50e7a741c4b29d8a41ed4c129ba0c2 Mon Sep 17 00:00:00 2001 From: Brooke E Kline Jr Date: Tue, 30 Oct 2018 17:57:03 -0400 Subject: [PATCH] iatBatch update iatBatch update --- iatBatch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}