Class: BrNfe::Product::Nfe::ItemTax::Ipi
- Inherits:
-
ActiveModelBase
- Object
- ActiveModelBase
- BrNfe::Product::Nfe::ItemTax::Ipi
- Defined in:
- lib/br_nfe/product/nfe/item_tax/ipi.rb
Instance Attribute Summary collapse
-
#aliquota ⇒ Object
Alíquota do IPI.
-
#base_calculo ⇒ Object
Valor da BC do IPI Informar se o cálculo do IPI for por alíquota.
-
#classe_enquadramento ⇒ Object
CLASSE DE ENQUADRAMENTO DO IPI PARA CIGARROS E BEBIDAS Preenchimento conforme Atos Normativos editados pela Receita Federal (Observação 2).
-
#cnpj_produtor ⇒ Object
CNPJ DO PRODUTOR DA MERCADORIA, QUANDO DIFERENTE DO EMITENTE.
-
#codigo_cst ⇒ Object
CÓDIGO DA SITUAÇÃO TRIBUTÁRIA do IPI 00 = Entrada com recuperação de crédito 01 = Entrada tributada com alíquota zero 02 = Entrada isenta 03 = Entrada não-tributada 04 = Entrada imune 05 = Entrada com suspensão 49 = Outras entradas 50 = Saída tributada 51 = Saída tributada com alíquota zero 52 = Saída isenta 53 = Saída não-tributada 54 = Saída imune 55 = Saída com suspensão 99 = Outras saídas.
-
#codigo_enquadramento ⇒ Object
CÓDIGO DE ENQUADRAMENTO LEGAL DO IPI Tabela a ser criada pela RFB, informar 999 enquanto a tabela não for criada.
-
#codigo_selo ⇒ Object
CÓDIGO DO SELO DE CONTROLE IPI Preenchimento conforme Atos Normativos editados pela Receita Federal (Observação 3).
-
#quantidade_selo ⇒ Object
QUANTIDADE DE SELO DE CONTROLE.
-
#quantidade_unidade ⇒ Object
QUANTIDADE TOTAL NA UNIDADE PADRÃO PARA TRIBUTAÇÃO (SOMENTE PARA OS PRODUTOS TRIBUTADOS POR UNIDADE).
-
#total ⇒ Object
VALOR DO IPI.
-
#total_unidade ⇒ Object
VALOR POR UNIDADE TRIBUTÁVEL.
Attributes inherited from ActiveModelBase
Instance Method Summary collapse
Methods inherited from ActiveModelBase
#assign_attributes, #initialize
Constructor Details
This class inherits a constructor from BrNfe::ActiveModelBase
Instance Attribute Details
#aliquota ⇒ Object
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_calculo ⇒ Object
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_enquadramento ⇒ Object
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_produtor ⇒ Object
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_cst ⇒ Object
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_enquadramento ⇒ Object
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_selo ⇒ Object
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_selo ⇒ Object
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_unidade ⇒ Object
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 |
#total ⇒ Object
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_unidade ⇒ Object
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_values ⇒ Object
156 157 158 159 160 |
# File 'lib/br_nfe/product/nfe/item_tax/ipi.rb', line 156 def default_values { codigo_enquadramento: '999', } end |