From cce174865ecbef60572c61c3366f4c06351cbbc5 Mon Sep 17 00:00:00 2001 From: Jean Carlos Date: Mon, 30 Sep 2019 15:47:41 -0400 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20tag=20tomaICMS=20(faltando?= =?UTF-8?q?)=20no=20CTe=20por=20substitui=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Make.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Make.php b/src/Make.php index d217fc35..9a0cca54 100755 --- a/src/Make.php +++ b/src/Make.php @@ -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"'); + } } }