Class: BrNfe::Product::Nfe::ItemTax::Pis

Inherits:
ActiveModelBase show all
Defined in:
lib/br_nfe/product/nfe/item_tax/pis.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 PIS (EM PERCENTUAL)

Type: Float Required: No (Yes if cst in [01 02]) Example: 350.47 tag: pPIS



70
71
72
# File 'lib/br_nfe/product/nfe/item_tax/pis.rb', line 70

def aliquota
  @aliquota
end

#codigo_cstObject

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

01 = Opera

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



47
48
49
# File 'lib/br_nfe/product/nfe/item_tax/pis.rb', line 47

def codigo_cst
  @codigo_cst
end

#quantidade_vendidaObject

QUANTIDADE VENDIDA

Type: Float Required: No (Yes if cst is 03) Example: 10.0 Length: 12v0-4 tag: qBCProd



91
92
93
# File 'lib/br_nfe/product/nfe/item_tax/pis.rb', line 91

def quantidade_vendida
  @quantidade_vendida
end

#totalObject

VALOR DO PIS

Type: Float Required: Yes (No if cst in [04 05 06 07 08 09]) Example: 350.47 tag: vPIS



80
81
82
# File 'lib/br_nfe/product/nfe/item_tax/pis.rb', line 80

def total
  @total
end

#total_aliquotaObject

ALÍQUOTA DO PIS (EM REAIS)

Type: Float Required: No (Yes if cst is 03) Example: 10.0 Length: 11v0-4 tag: vAliqProd



102
103
104
# File 'lib/br_nfe/product/nfe/item_tax/pis.rb', line 102

def total_aliquota
  @total_aliquota
end

#total_base_calculoObject

VALOR DA BASE DE CÁLCULO DO PIS

Type: Float Required: No (Yes if cst in [01 02]) Example: 350.47 tag: vBC



60
61
62
# File 'lib/br_nfe/product/nfe/item_tax/pis.rb', line 60

def total_base_calculo
  @total_base_calculo
end

Instance Method Details

#default_valuesObject



105
106
107
108
109
# File 'lib/br_nfe/product/nfe/item_tax/pis.rb', line 105

def default_values
  {
    codigo_cst: '07'
  }
end