Skip to content

Commit

Permalink
data multa PR #657
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardokum committed Jun 1, 2022
1 parent c51eac9 commit 9dfdc82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Cnab/Remessa/Cnab240/Banco/Bancoob.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ public function segmentoR(BoletoContract $boleto)
$this->add(43, 50, '00000000');
$this->add(51, 65, '000000000000000');
$this->add(66, 66, $boleto->getMulta() > 0 ? '2' : '0'); //0 = ISENTO | 1 = VALOR FIXO | 2 = PERCENTUAL
$this->add(67, 74, $boleto->getMulta() > 0 ? $boleto->getDataVencimento()->format('dmY') : '00000000'); $this->add(75, 89, Util::formatCnab('9', $boleto->getMulta(), 15, 2)); //2,20 = 0000000000220
$this->add(67, 74, $boleto->getMulta() > 0 ? $boleto->getDataVencimento()->copy()->addDay()->format('dmY') : '00000000'); +
$this->add(75, 89, Util::formatCnab('9', $boleto->getMulta(), 15, 2)); //2,20 = 0000000000220
$this->add(90, 199, '');
$this->add(200, 207, '00000000');
$this->add(208, 210, '000');
Expand Down

0 comments on commit 9dfdc82

Please sign in to comment.