Class: BrNfe::Product::Nfe::ItemTax::Ipi

Inherits:
ActiveModelBase show all
Defined in:
lib/br_nfe/product/nfe/item_tax/ipi.rb

Instance Attribute Summary collapse

Attributes inherited from ActiveModelBase

#reference

Instance Method Summary collapse

Methods inherited from ActiveModelBase

#assign_attributes, #initialize

Constructor Details

This class inherits a constructor from BrNfe::ActiveModelBase

Instance Attribute Details

#aliquotaObject

Alíquota do IPI

Type: Float Required: No Example: 12.00 tag: pIPI



122
123
124
# File 'lib/br_nfe/product/nfe/item_tax/ipi.rb', line 122

def aliquota
  @aliquota
end

#base_calculoObject

Valor da BC do IPI Informar se o cálculo do IPI for por alíquota.

Type: Float Required: No Example: 152.38 tag: vBC



112
113
114
# File 'lib/br_nfe/product/nfe/item_tax/ipi.rb', line 112

def base_calculo
  @base_calculo
end

#classe_enquadramentoObject

CLASSE DE ENQUADRAMENTO DO IPI PARA CIGARROS E BEBIDAS

Preenchimento conforme Atos Normativos editados pela
Receita Federal (Observa

Type: String Required: No Example: C1324 Length: _max: 5_ tag: clEnq



44
45
46
# File 'lib/br_nfe/product/nfe/item_tax/ipi.rb', line 44

def classe_enquadramento
  @classe_enquadramento
end

#cnpj_produtorObject

CNPJ DO PRODUTOR DA MERCADORIA, QUANDO DIFERENTE DO EMITENTE. SOMENTE PARA OS CASOS DE EXPORTAÇÃO DIRETA OU INDIRETA.

Informar os zeros n

Type: String Required: No Example: _00.000.000/0001-00 OU 01234567890123_ Length: 14 tag: CNPJProd



57
58
59
# File 'lib/br_nfe/product/nfe/item_tax/ipi.rb', line 57

def cnpj_produtor
  @cnpj_produtor
end

#codigo_cstObject

CÓDIGO DA SITUAÇÃO TRIBUTÁRIA do IPI

00 = Entrada com recupera

Type: Number <- string Required: Yes Example: 00 Length: 2 tag: CST



28
29
30
# File 'lib/br_nfe/product/nfe/item_tax/ipi.rb', line 28

def codigo_cst
  @codigo_cst
end

#codigo_enquadramentoObject

CÓDIGO DE ENQUADRAMENTO LEGAL DO IPI Tabela a ser criada pela RFB, informar 999 enquanto a tabela não for criada

Type: String Required: Yes Example: 999 Default: 999 Length: _max: 3_ tag: cEnq



101
102
103
# File 'lib/br_nfe/product/nfe/item_tax/ipi.rb', line 101

def codigo_enquadramento
  @codigo_enquadramento
end

#codigo_seloObject

CÓDIGO DO SELO DE CONTROLE IPI

Preenchimento conforme Atos Normativos editados pela
Receita Federal (Observa

Type: String Required: No Example: SELO12345654 Length: _max: 60_ tag: cSelo



73
74
75
# File 'lib/br_nfe/product/nfe/item_tax/ipi.rb', line 73

def codigo_selo
  @codigo_selo
end

#quantidade_seloObject

QUANTIDADE DE SELO DE CONTROLE

Type: Number Required: No Example: 50 Length: _max: 12_ tag: qSelo



84
85
86
# File 'lib/br_nfe/product/nfe/item_tax/ipi.rb', line 84

def quantidade_selo
  @quantidade_selo
end

#quantidade_unidadeObject

QUANTIDADE TOTAL NA UNIDADE PADRÃO PARA TRIBUTAÇÃO (SOMENTE PARA OS PRODUTOS TRIBUTADOS POR UNIDADE)

Type: Float Required: No Example: 12.00 tag: qUnid



133
134
135
# File 'lib/br_nfe/product/nfe/item_tax/ipi.rb', line 133

def quantidade_unidade
  @quantidade_unidade
end

#totalObject

VALOR DO IPI

Type: Float Required: No (Yes if CST [00 49 50 99]) Example: 12.00 tag: vIPI



153
154
155
# File 'lib/br_nfe/product/nfe/item_tax/ipi.rb', line 153

def total
  @total
end

#total_unidadeObject

VALOR POR UNIDADE TRIBUTÁVEL

Type: Float Required: No Example: 12.00 tag: vUnid



143
144
145
# File 'lib/br_nfe/product/nfe/item_tax/ipi.rb', line 143

def total_unidade
  @total_unidade
end

Instance Method Details

#default_valuesObject



156
157
158
159
160
# File 'lib/br_nfe/product/nfe/item_tax/ipi.rb', line 156

def default_values
  {
    codigo_enquadramento: '999', 
  }
end