Skip to content

Commit

Permalink
Merge 9c9ae5a into d728abb
Browse files Browse the repository at this point in the history
  • Loading branch information
andrezipf94 committed Apr 6, 2020
2 parents d728abb + 9c9ae5a commit 0bf2840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Make.php
Expand Up @@ -318,7 +318,7 @@ public function monta()
if (($tpEmit == 1 || $tpEmit == 3) && empty($this->prodPred)) {
$this->errors[] = "Tag prodPred é obrigatória para modal rodoviário!";
}
if (empty($this->infLotacao) and ($this->contaDoc($this->infCTe) + $this->contaDoc($this->infNFe) + $this->contaDoc($this->infMDFeTransp)) == 1) {
if (($tpEmit == 1 || $tpEmit == 3) && empty($this->infLotacao) && ($this->contaDoc($this->infCTe) + $this->contaDoc($this->infNFe) + $this->contaDoc($this->infMDFeTransp)) == 1) {
$this->errors[] = "Tag infLotacao é obrigatória quando só existir um Documento informado!";
}
if ($this->infANTT) {
Expand Down

0 comments on commit 0bf2840

Please sign in to comment.