Skip to content

Commit

Permalink
ajuste valor nota
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardokum committed Aug 14, 2024
1 parent d3141aa commit 89169ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Cnab/Remessa/Cnab400/Banco/Abc.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,19 +206,19 @@ public function addBoleto(BoletoContract $boleto)

$nota1 = $boleto->getNotaFiscal(0);
$this->add(2, 16, Util::formatCnab('X', $nota1->getNumero(), 15)); // Numero da nota 1
$this->add(17, 29, Util::formatCnab('9', $nota1->getValor(), 11, 2)); // valor da nota 1
$this->add(17, 29, Util::formatCnab('9', $nota1->getValor(), 13, 2)); // valor da nota 1
$this->add(30, 37, Util::formatCnab('9', $nota1->getData('dmY'), 8)); // data nota 1
$this->add(38, 81, Util::formatCnab('9', $nota1->getChave(), 44)); // Chave da nota 1

$nota2 = $boleto->getNotaFiscal(1);
$this->add(82, 96, Util::formatCnab('X', $nota2->getNumero(), 15)); // Numero da nota 2
$this->add(97, 109, Util::formatCnab('9', $nota2->getValor(), 11, 2)); // valor da nota 2
$this->add(97, 109, Util::formatCnab('9', $nota2->getValor(), 13, 2)); // valor da nota 2
$this->add(110, 117, Util::formatCnab('9', $nota2->getData('dmY'), 8)); // data nota 2
$this->add(118, 161, Util::formatCnab('9', $nota2->getChave(), 44)); // Chave da nota 2

$nota3 = $boleto->getNotaFiscal(2);
$this->add(162, 176, Util::formatCnab('X', $nota3->getNumero(), 15)); // Numero da nota 3
$this->add(177, 189, Util::formatCnab('9', $nota3->getValor(), 11, 2)); // valor da nota 3
$this->add(177, 189, Util::formatCnab('9', $nota3->getValor(), 13, 2)); // valor da nota 3
$this->add(190, 197, Util::formatCnab('9', $nota3->getData('dmY'), 8)); // data nota 3
$this->add(198, 241, Util::formatCnab('9', $nota3->getChave(), 44)); // Chave da nota 3

Expand Down

0 comments on commit 89169ed

Please sign in to comment.