Skip to content

Commit

Permalink
log usage indicator for ISA 15 in 997 and 824 (#6944)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquelineIO authored Jul 8, 2021
1 parent 5689148 commit 27ce024
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/services/invoice/process_edi824.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ func (e *edi824Processor) logEDI(edi ediResponse824.EDI) {
zap.Int64("824 ICN", icn),
zap.String("BGN.ReferenceIdentification", bgn.ReferenceIdentification),
zap.Int64("858 GCN", otiGCN),
zap.String("UsageIndicator (ISA-15)", edi.InterchangeControlEnvelope.ISA.UsageIndicator),
)
}

Expand Down Expand Up @@ -228,5 +229,6 @@ func (e *edi824Processor) logEDIWithPaymentRequest(edi ediResponse824.EDI, payme
zap.Int64("858 GCN", otiGCN),
zap.String("PaymentRequestNumber", paymentRequest.PaymentRequestNumber),
zap.String("PaymentRequest.Status", string(paymentRequest.Status)),
zap.String("UsageIndicator (ISA-15)", edi.InterchangeControlEnvelope.ISA.UsageIndicator),
)
}
2 changes: 2 additions & 0 deletions pkg/services/invoice/process_edi997.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ func (e *edi997Processor) logEDI(edi ediResponse997.EDI) {
e.logger.Info("EDI 997 log",
zap.Int64("997 ICN", edi.InterchangeControlEnvelope.ISA.InterchangeControlNumber),
zap.Int64("858 GCN/ICN", ak1.GroupControlNumber),
zap.String("UsageIndicator (ISA-15)", edi.InterchangeControlEnvelope.ISA.UsageIndicator),
)
}

Expand All @@ -165,5 +166,6 @@ func (e *edi997Processor) logEDIWithPaymentRequest(edi ediResponse997.EDI, payme
zap.Int64("858 GCN/ICN", ak1.GroupControlNumber),
zap.String("PaymentRequestNumber", paymentRequest.PaymentRequestNumber),
zap.String("PaymentRequest.Status", string(paymentRequest.Status)),
zap.String("UsageIndicator (ISA-15)", edi.InterchangeControlEnvelope.ISA.UsageIndicator),
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func (p *paymentRequestReviewedProcessor) ProcessAndLockReviewedPR(pr models.Pay
zap.String("ReferenceIdentification/PaymentRequestNumber", edi858c.Header.PaymentRequestNumber.ReferenceIdentification),
zap.String("Date", edi858c.ISA.InterchangeDate),
zap.String("Time", edi858c.ISA.InterchangeTime),
zap.String("UsageIndicator (ISA-15)", edi858c.ISA.UsageIndicator),
)
// Send EDI string to Syncada
// If sent successfully to GEX, update payment request status to SENT_TO_GEX.
Expand Down

0 comments on commit 27ce024

Please sign in to comment.