Skip to content

Commit

Permalink
Merge pull request #2 from carcaju/master
Browse files Browse the repository at this point in the history
corrigido campo de retorno do lote, de numero_compromisso para seu_nu…
  • Loading branch information
Ewersonfc authored Oct 24, 2018
2 parents 9d275ce + d6f8b0d commit 4d89468
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/Safra/retorno/confirmacao_rejeicao.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ data_ocorrencia:
pos: [111, 116]
picture: '9(06)'
date_format: '%d%m%y'
numero_compromisso:
seu_numero:
pos: [117, 126]
picture: 'X(10)'
banco_destino:
Expand Down
2 changes: 1 addition & 1 deletion src/Factories/RetornoFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function generateSafraResponse()
$fileResponse->agencia = $detail['codigo_agencia']['value'];
$fileResponse->fornecedor = $detail['codigo_fornecedor']['value'];
$fileResponse->documento = $detail['tipo_documento']['value'];
$fileResponse->compromisso = $detail['numero_compromisso']['value'];
$fileResponse->compromisso = trim($detail['seu_numero']['value']);
$fileResponse->dataPagamento = $detail['data_pagamento']['value'];
$fileResponse->dataVencimento = $detail['data_vencimento']['value'];
$fileResponse->operacao = $detail['codigo_operacao']['value'];
Expand Down

0 comments on commit 4d89468

Please sign in to comment.