From 5d7305a0c58a3da289a833edf1c030ed52a3461d Mon Sep 17 00:00:00 2001 From: robmachado Date: Fri, 8 Apr 2022 17:20:32 -0300 Subject: [PATCH] ISSUE #526 ajustes para capturar o vTotTrib no BLOCO IX --- src/NFe/Traits/TraitBlocoIX.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NFe/Traits/TraitBlocoIX.php b/src/NFe/Traits/TraitBlocoIX.php index 34699db0..778afed3 100644 --- a/src/NFe/Traits/TraitBlocoIX.php +++ b/src/NFe/Traits/TraitBlocoIX.php @@ -10,7 +10,7 @@ trait TraitBlocoIX protected function blocoIX($y) { $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => '']; - $valor = $this->getTagValue($this->imposto, 'vTotTrib'); + $valor = $this->getTagValue($this->ICMSTot, 'vTotTrib'); $trib = !empty($valor) ? number_format((float) $valor, 2, ',', '.') : '-----'; $texto = "Tributos totais Incidentes (Lei Federal 12.741/2012): R$ {$trib}"; $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => ''];