Skip to content

Commit

Permalink
santander codigo cliente
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardokum committed Sep 26, 2017
1 parent 9ad5ec4 commit 63c1f4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Boleto/Banco/Santander.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Santander extends AbstractBoleto implements BoletoContract
public function __construct(array $params = [])
{
parent::__construct($params);
$this->setCamposObrigatorios('numero', 'conta', 'carteira');
$this->setCamposObrigatorios('numero', 'codigoCliente', 'carteira');
}

/**
Expand Down Expand Up @@ -184,7 +184,7 @@ protected function getCampoLivre()
if ($this->campoLivre) {
return $this->campoLivre;
}
return $this->campoLivre = '9' . Util::numberFormatGeral($this->getConta(), 7)
return $this->campoLivre = '9' . Util::numberFormatGeral($this->getCodigoCliente(), 7)
. Util::numberFormatGeral($this->getNossoNumero(), 13)
. Util::numberFormatGeral($this->getIos(), 1)
. Util::numberFormatGeral($this->getCarteira(), 3);
Expand Down

0 comments on commit 63c1f4a

Please sign in to comment.