Skip to content

Commit

Permalink
Merge pull request #254 from jeansilvaofficial/master
Browse files Browse the repository at this point in the history
Correção tag tomaICMS (faltando) no CTe por substituição
  • Loading branch information
cleitonperin authored Sep 30, 2019
2 parents 6b9fed8 + cce1748 commit 35d28cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Make.php
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,12 @@ public function monta()
foreach ($this->veicNovos as $veicNovos) {
$this->dom->appChild($this->infCTeNorm, $veicNovos, 'Falta tag "infCte"');
}
if ($this->infCteSub != '') { // Caso seja um CTe tipo anulação
if ($this->infCteSub != '') {
$this->dom->appChild($this->infCTeNorm, $this->infCteSub, 'Falta tag "infCteSub"');

if ($this->tomaICMS != '') {
$this->dom->appChild($this->infCteSub, $this->tomaICMS, 'Falta tag "infCteSub"');
}
}
}

Expand Down

0 comments on commit 35d28cb

Please sign in to comment.