Skip to content

Commit

Permalink
Merge pull request #18 from ctoigo/master
Browse files Browse the repository at this point in the history
Homologado arquivo retorno da SICREDI
  • Loading branch information
newerton authored Jan 6, 2019
2 parents ef23429 + 9cf7260 commit d5792a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Banco | Boleto | Remessa 400 | Remessa 240 | Retorno 400 | Retorno 240
Hsbc | :white_check_mark: | :white_check_mark: | | :white_check_mark: | |
Itau | :white_check_mark: | :white_check_mark: | | :white_check_mark: | |
Santander | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
Sicredi | :white_check_mark: | :white_check_mark: | | :eight_pointed_black_star: | |
Sicredi | :white_check_mark: | :white_check_mark: | | :white_check_mark: | |
Banco do Nordeste | :eight_pointed_black_star: | :eight_pointed_black_star: | | | |

**\:eight_pointed_black_star: necessita de homologação**
Expand Down
12 changes: 6 additions & 6 deletions src/Cnab/Retorno/Cnab400/Banco/Sicredi.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,21 +237,21 @@ protected function processarDetalhe(array $detalhe)
{
$d = $this->detalheAtual();
$d->setNossoNumero($this->rem(48, 62, $detalhe))
->setNumeroDocumento($this->rem(117, 126, $detalhe))
->setOcorrencia($this->rem(109, 110, $detalhe))
->setNumeroDocumento($this->rem(117, 126, $detalhe))
->setOcorrenciaDescricao(array_get($this->ocorrencias, $d->getOcorrencia(), 'Desconhecida'))
->setDataOcorrencia($this->rem(111, 116, $detalhe))
->setDataVencimento($this->rem(147, 152, $detalhe))
->setDataOcorrencia($this->rem(111, 116, $detalhe), 'dmy')
->setDataVencimento($this->rem(147, 152, $detalhe), 'dmy')
->setValor(Util::nFloat($this->rem(153, 165, $detalhe)/100, 2, false))
->setValorTarifa(Util::nFloat($this->rem(176, 188, $detalhe)/100, 2, false))
->setValorAbatimento(Util::nFloat($this->rem(228, 240, $detalhe)/100, 2, false))
->setValorDesconto(Util::nFloat($this->rem(241, 253, $detalhe)/100, 2, false))
->setValorRecebido(Util::nFloat($this->rem(254, 266, $detalhe)/100, 2, false))
->setValorMora(Util::nFloat($this->rem(267, 279, $detalhe)/100, 2, false))
->setValorMulta(Util::nFloat($this->rem(280, 292, $detalhe)/100, 2, false))
->setDataCredito(Util::nFloat($this->rem(329, 336, $detalhe)/100, 2, false));

$this->totais['valor_recebido'] += $d->getValorRecebido();
->setDataCredito($this->rem(329, 336, $detalhe), 'Ymd');
$this->totais['valor_recebido'] += (double)$d->getValorRecebido();

if ($d->hasOcorrencia('06', '15', '16')) {
$this->totais['liquidados']++;
Expand Down

0 comments on commit d5792a2

Please sign in to comment.