From 365cad6caaa2ec555833a4886cfb366d6614d851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Gi=C3=B3ia?= Date: Tue, 15 Oct 2024 14:55:54 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20adicionando=20c=C3=B3digo=20de=20regime?= =?UTF-8?q?=20tribut=C3=A1rio=204=20-=20Simples=20Nacional=20-=20Microempr?= =?UTF-8?q?eendedor=20Individual=20MEI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/NFe/Danfe.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NFe/Danfe.php b/src/NFe/Danfe.php index 77efa4d6..6446e70c 100644 --- a/src/NFe/Danfe.php +++ b/src/NFe/Danfe.php @@ -3024,10 +3024,10 @@ protected function itens($x, $y, &$nInicio, $hmax, $pag = 0, $totpag = 0, $hCabe //O/CST ou O/CSOSN $x += $w3; $w4 = round($w * 0.05, 0); - $texto = 'O/CST'; // CRT = 2 ou CRT = 3 - if ($this->getTagValue($this->emit, 'CRT') == '1') { - $texto = 'O/CSOSN'; //Regime do Simples CRT = 1 - } + $crt = $this->getTagValue($this->emit, 'CRT'); + // 1=Simples Nacional; 2=Simples Nacional, excesso sublimite de receita bruta; + // 3=Regime Normal; 4=Simples Nacional - Microempreendedor Individual - MEI; + $texto = in_array($crt, ['1', '4']) ? 'O/CSOSN' : 'O/CST'; $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; $this->pdf->textBox($x, $y, $w4, $h, $texto, $aFont, 'C', 'C', 0, '', false); //$this->pdf->line($x + $w4, $y, $x + $w4, $y + $hmax);