Support NOC for IAT entries
return nill for addendaFieldInclusion when entry.Category is NOC
@@ -455,7 +455,9 @@ func (batch *IATBatch) isCategory() error {
func (batch *IATBatch) addendaFieldInclusion(entry *IATEntryDetail) error {
- if entry.Category != CategoryNOC {
+ if entry.Category == CategoryNOC {
+ return nil
+ }
if entry.Addenda10 == nil {
msg := fmt.Sprint(msgIATBatchAddendaRequired)
return &BatchError{BatchNumber: batch.Header.BatchNumber, FieldName: "Addenda10", Msg: msg}
@@ -484,7 +486,7 @@ func (batch *IATBatch) addendaFieldInclusion(entry *IATEntryDetail) error {
msg := fmt.Sprint(msgIATBatchAddendaRequired)
return &BatchError{BatchNumber: batch.Header.BatchNumber, FieldName: "Addenda16", Msg: msg}
}
- }
+
return nil
}
