Skip to content

Commit

Permalink
Merge pull request #621 from rgioia/master
Browse files Browse the repository at this point in the history
feat: adicionando código de regime tributário 4 - Simples Nacional - Microempreendedor Individual MEI
  • Loading branch information
robmachado authored Dec 20, 2024
2 parents 6cbd40f + 365cad6 commit eec29ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/NFe/Danfe.php
Original file line number Diff line number Diff line change
Expand Up @@ -3033,10 +3033,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);
Expand Down

0 comments on commit eec29ff

Please sign in to comment.