Skip to content

Commit

Permalink
rendimento codigo cliente
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardokum committed Sep 11, 2023
1 parent 79c2979 commit 5446394
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Cnab/Remessa/Cnab400/Banco/Rendimento.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ protected function header()
*/
public function addBoleto(BoletoContract $boleto)
{
if (!Str::startsWith($this->getCodigoCliente(), $this->getAgencia())) {
$this->setCodigoCliente(Util::numberFormatGeral($this->getAgencia(), 4) . Util::numberFormatGeral($this->getCodigoCliente(), 10));
}

$this->boletos[] = $boleto;
$this->iniciaDetalhe();

Expand Down

0 comments on commit 5446394

Please sign in to comment.