Company Identification validation
closes
@@ -16,6 +16,7 @@ func TestParseBatchControl(t *testing.T) {
r.line = line
r.currentBatch.Header.BatchNumber = 1
r.currentBatch.Header.ServiceClassCode = 225
+ r.currentBatch.Header.CompanyIdentification = "origid"
r.currentBatch.addEntryDetail(EntryDetail{TransactionCode: 27, Amount: 10500, RDFIIdentification: 5320001})
err := r.parseBatchControl()
if err != nil {
@@ -65,6 +66,7 @@ func TestBCString(t *testing.T) {
r.line = line
r.currentBatch.Header.BatchNumber = 1
r.currentBatch.Header.ServiceClassCode = 225
+ r.currentBatch.Header.CompanyIdentification = "origid"
r.currentBatch.addEntryDetail(EntryDetail{TransactionCode: 27, Amount: 10500, RDFIIdentification: 5320001})
err := r.parseBatchControl()
if err != nil {
