Skip to content

Commit

Permalink
Sequence numbers should be zero padded.
Browse files Browse the repository at this point in the history
  • Loading branch information
jenakan committed Oct 9, 2020
1 parent 5c1b9a7 commit 50898b6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions bundleHeader.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package imagecashletter

import (
"fmt"
"strconv"
"strings"
"time"
"unicode/utf8"
Expand Down Expand Up @@ -291,7 +290,6 @@ func (bh *BundleHeader) reservedField() string {

// SetBundleSequenceNumber sets BundleSequenceNumber
func (bh *BundleHeader) SetBundleSequenceNumber(seq int) string {
bundleSequence := strconv.Itoa(seq)
bh.BundleSequenceNumber = bundleSequence
bh.BundleSequenceNumber = bh.numericField(seq, 4)
return bh.BundleSequenceNumber
}
4 changes: 1 addition & 3 deletions checkDetail.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package imagecashletter

import (
"fmt"
"strconv"
"strings"
"unicode/utf8"
)
Expand Down Expand Up @@ -452,7 +451,6 @@ func (cd *CheckDetail) GetImageViewAnalysis() []ImageViewAnalysis {

// SetEceInstitutionItemSequenceNumber sets EceInstitutionItemSequenceNumber
func (cd *CheckDetail) SetEceInstitutionItemSequenceNumber(seq int) string {
itemSequence := strconv.Itoa(seq)
cd.EceInstitutionItemSequenceNumber = itemSequence
cd.EceInstitutionItemSequenceNumber = cd.numericField(seq, 15)
return cd.EceInstitutionItemSequenceNumber
}
4 changes: 1 addition & 3 deletions checkDetailAddendumA.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package imagecashletter

import (
"fmt"
"strconv"
"strings"
"time"
"unicode/utf8"
Expand Down Expand Up @@ -307,7 +306,6 @@ func (cdAddendumA *CheckDetailAddendumA) reservedField() string {

// SetBOFDItemSequenceNumber sets BOFDItemSequenceNumber
func (cdAddendumA *CheckDetailAddendumA) SetBOFDItemSequenceNumber(seq int) string {
itemSequence := strconv.Itoa(seq)
cdAddendumA.BOFDItemSequenceNumber = itemSequence
cdAddendumA.BOFDItemSequenceNumber = cdAddendumA.numericField(seq, 15)
return cdAddendumA.BOFDItemSequenceNumber
}

0 comments on commit 50898b6

Please sign in to comment.