Code Comment Updates
Code Comment Updates
@@ -18,8 +18,7 @@ type ADVBatchControl struct {
ID string `json:"id"`
// RecordType defines the type of record in the block.
recordType string
- // Constant AutomatedAccountingAdvices: 280
- // Same as 'ServiceClassCode' in BatchHeaderRecord
+ // This should be the same as BatchHeader ServiceClassCode for ADV: AutomatedAccountingAdvices.
ServiceClassCode int `json:"serviceClassCode"`
// EntryAddendaCount is a tally of each Entry Detail Record and each Addenda
// Record processed, within either the batch or file as appropriate.
@@ -58,8 +57,7 @@ func (bc *ADVBatchControl) Parse(record string) {
// 1-1 Always "8"
bc.recordType = "8"
- // 2-4 This is the same as the "Service code" field in previous Batch Header Record -
- // AutomatedAccountingAdvices: 280
+ // 2-4 This is the same as the "Service code" field in previous Batch Header Record
bc.ServiceClassCode = bc.parseNumField(record[1:4])
// 5-10 Total number of Entry Detail Record in the batch
bc.EntryAddendaCount = bc.parseNumField(record[4:10])
