Skip to content

Commit

Permalink
retorno 400 posicoes carteira
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardokum committed Feb 21, 2018
1 parent d950c25 commit c00fb31
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/Cnab/Retorno/Cnab400/Banco/Bancoob.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ protected function processarDetalhe(array $detalhe)
{
$d = $this->detalheAtual();

$d->setNossoNumero($this->rem(63, 73, $detalhe))
$d->setCarteira($this->rem(108, 108, $detalhe))
->setNossoNumero($this->rem(63, 73, $detalhe))
->setNumeroDocumento($this->rem(117, 126, $detalhe))
->setNumeroControle($this->rem(38, 62, $detalhe))
->setOcorrencia($this->rem(109, 110, $detalhe))
Expand Down
3 changes: 2 additions & 1 deletion src/Cnab/Retorno/Cnab400/Banco/Banrisul.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ protected function processarDetalhe(array $detalhe)
{
$d = $this->detalheAtual();

$d->setNossoNumero($this->rem(63, 72, $detalhe))
$d->setCarteira($this->rem(108, 108, $detalhe))
->setNossoNumero($this->rem(63, 72, $detalhe))
->setNumeroDocumento($this->rem(117, 126, $detalhe))
->setNumeroControle($this->rem(38, 62, $detalhe))
->setOcorrencia($this->rem(109, 110, $detalhe))
Expand Down
3 changes: 2 additions & 1 deletion src/Cnab/Retorno/Cnab400/Banco/Bb.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ protected function processarDetalhe(array $detalhe)

$d = $this->detalheAtual();

$d->setNossoNumero($this->rem(64, 80, $detalhe))
$d->setCarteira($this->rem(107, 108, $detalhe))
->setNossoNumero($this->rem(64, 80, $detalhe))
->setNumeroDocumento($this->rem(117, 126, $detalhe))
->setNumeroControle($this->rem(39, 63, $detalhe))
->setOcorrencia($this->rem(109, 110, $detalhe))
Expand Down
3 changes: 2 additions & 1 deletion src/Cnab/Retorno/Cnab400/Banco/Bnb.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ protected function processarDetalhe(array $detalhe)
} else {
$dataCredito = $this->rem(111, 116, $detalhe);
}
$d->setNossoNumero($this->rem(63, 70, $detalhe)) // Nosso número + digito (no retorno bnb são separados em campos diferentes)
$d->setCarteira($this->rem(108, 108, $detalhe))
->setNossoNumero($this->rem(63, 70, $detalhe)) // Nosso número + digito (no retorno bnb são separados em campos diferentes)
->setNumeroDocumento($this->rem(117, 126, $detalhe))
->setNumeroControle($this->rem(38, 62, $detalhe))
->setOcorrencia($this->rem(109, 110, $detalhe))
Expand Down
3 changes: 2 additions & 1 deletion src/Cnab/Retorno/Cnab400/Banco/Bradesco.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ protected function processarDetalhe(array $detalhe)
}

$d = $this->detalheAtual();
$d->setNossoNumero($this->rem(71, 82, $detalhe))
$d->setCarteira($this->rem(108, 108, $detalhe))
->setNossoNumero($this->rem(71, 82, $detalhe))
->setNumeroDocumento($this->rem(117, 126, $detalhe))
->setNumeroControle($this->rem(38, 62, $detalhe))
->setOcorrencia($this->rem(109, 110, $detalhe))
Expand Down
3 changes: 2 additions & 1 deletion src/Cnab/Retorno/Cnab400/Banco/Caixa.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ protected function processarHeader(array $header)
protected function processarDetalhe(array $detalhe)
{
$d = $this->detalheAtual();
$d->setNossoNumero($this->rem(57, 73, $detalhe))
$d->setCarteira($this->rem(107, 108, $detalhe))
->setNossoNumero($this->rem(57, 73, $detalhe))
->setNumeroDocumento($this->rem(117, 126, $detalhe))
->setNumeroControle($this->rem(32, 56, $detalhe))
->setOcorrencia($this->rem(109, 110, $detalhe))
Expand Down
3 changes: 2 additions & 1 deletion src/Cnab/Retorno/Cnab400/Banco/Hsbc.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ protected function processarHeader(array $header)
protected function processarDetalhe(array $detalhe)
{
$d = $this->detalheAtual();
$d->setNossoNumero($this->rem(63, 73, $detalhe))
$d->setCarteira($this->rem(108, 108, $detalhe))
->setNossoNumero($this->rem(63, 73, $detalhe))
->setNumeroDocumento($this->rem(117, 126, $detalhe))
->setNumeroControle($this->rem(38, 62, $detalhe))
->setOcorrencia($this->rem(109, 110, $detalhe))
Expand Down
3 changes: 2 additions & 1 deletion src/Cnab/Retorno/Cnab400/Banco/Santander.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ protected function processarDetalhe(array $detalhe)
}

$d = $this->detalheAtual();
$d->setNossoNumero($this->rem(63, 70, $detalhe))
$d->setCarteira($this->rem(108, 108, $detalhe))
->setNossoNumero($this->rem(63, 70, $detalhe))
->setNumeroDocumento($this->rem(117, 126, $detalhe))
->setNumeroControle($this->rem(38, 62, $detalhe))
->setOcorrencia($this->rem(109, 110, $detalhe))
Expand Down

0 comments on commit c00fb31

Please sign in to comment.