Skip to content

Commit

Permalink
Merge pull request #1 from Equipe-Proesc/bugFix/remesssa_segmento_p_b…
Browse files Browse the repository at this point in the history
…anco_brasil

fix: Removido 0 e colocado espaço em branco segmentoP
  • Loading branch information
renankabal authored Aug 17, 2023
2 parents 1e312e4 + 609a14b commit 9fbeb50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cnab/Remessa/Cnab240/Banco/Bb.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ protected function segmentoP(BoletoContract $boleto)
$this->add(78, 85, $boleto->getDataVencimento()->format('dmY'));
$this->add(86, 100, Util::formatCnab('9', $boleto->getValor(), 15, 2));
$this->add(101, 105, '00000');
$this->add(106, 106, '0');
$this->add(106, 106, ' ');
$this->add(107, 108, Util::formatCnab('9', $boleto->getEspecieDocCodigo(), 2));
$this->add(109, 109, Util::formatCnab('9', $boleto->getAceite(), 1));
$this->add(110, 117, $boleto->getDataDocumento()->format('dmY'));
Expand Down
4 changes: 4 additions & 0 deletions tests/Remessa/RemessaCnab240Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,8 @@ public function testRemessaBBcnab240()
$file2 = $remessa->save($file);
$this->assertEquals($file, $file2);
}




}

0 comments on commit 9fbeb50

Please sign in to comment.