Class: BrNfe::Servico::Rps
- Inherits:
-
ActiveModelBase
- Object
- ActiveModelBase
- BrNfe::Servico::Rps
- Defined in:
- lib/br_nfe/servico/rps.rb
Instance Attribute Summary collapse
-
#aliquota ⇒ Object
Returns the value of attribute aliquota.
-
#base_calculo ⇒ Object
Returns the value of attribute base_calculo.
-
#codigo_art ⇒ Object
Returns the value of attribute codigo_art.
-
#codigo_cnae ⇒ Object
Returns the value of attribute codigo_cnae.
-
#codigo_municipio ⇒ Object
Returns the value of attribute codigo_municipio.
-
#codigo_obra ⇒ Object
Para construção civil.
-
#codigo_pais ⇒ Object
Returns the value of attribute codigo_pais.
-
#codigo_tributacao_municipio ⇒ Object
Returns the value of attribute codigo_tributacao_municipio.
-
#competencia ⇒ Object
Returns the value of attribute competencia.
-
#data_emissao ⇒ Object
Returns the value of attribute data_emissao.
-
#desconto_condicionado ⇒ Object
Returns the value of attribute desconto_condicionado.
-
#desconto_incondicionado ⇒ Object
Returns the value of attribute desconto_incondicionado.
-
#discriminacao ⇒ Object
Returns the value of attribute discriminacao.
-
#exigibilidade_iss ⇒ Object
Returns the value of attribute exigibilidade_iss.
-
#iss_retido ⇒ Object
Returns the value of attribute iss_retido.
-
#item_lista_servico ⇒ Object
Returns the value of attribute item_lista_servico.
-
#municipio_incidencia ⇒ Object
Returns the value of attribute municipio_incidencia.
-
#numero ⇒ Object
Returns the value of attribute numero.
-
#numero_processo ⇒ Object
Returns the value of attribute numero_processo.
-
#numero_substituicao ⇒ Object
Returns the value of attribute numero_substituicao.
-
#outras_informacoes ⇒ Object
Returns the value of attribute outras_informacoes.
-
#outras_retencoes ⇒ Object
Returns the value of attribute outras_retencoes.
-
#responsavel_retencao ⇒ Object
Returns the value of attribute responsavel_retencao.
-
#serie ⇒ Object
Returns the value of attribute serie.
-
#serie_substituicao ⇒ Object
Returns the value of attribute serie_substituicao.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tipo ⇒ Object
Returns the value of attribute tipo.
-
#tipo_substituicao ⇒ Object
Returns the value of attribute tipo_substituicao.
-
#validar_recepcao_rps ⇒ Object
Returns the value of attribute validar_recepcao_rps.
-
#valor_cofins ⇒ Object
Returns the value of attribute valor_cofins.
-
#valor_csll ⇒ Object
Returns the value of attribute valor_csll.
-
#valor_deducoes ⇒ Object
Returns the value of attribute valor_deducoes.
-
#valor_inss ⇒ Object
Returns the value of attribute valor_inss.
-
#valor_ir ⇒ Object
Returns the value of attribute valor_ir.
-
#valor_iss ⇒ Object
Returns the value of attribute valor_iss.
-
#valor_pis ⇒ Object
Returns the value of attribute valor_pis.
-
#valor_servicos ⇒ Object
Returns the value of attribute valor_servicos.
Instance Method Summary collapse
Methods included from Helper::HaveCondicaoPagamento
#condicao_pagamento, #condicao_pagamento=
Methods included from Helper::HaveIntermediario
#intermediario, #intermediario=
Methods included from Helper::HaveDestinatario
Methods inherited from ActiveModelBase
#assign_attributes, #initialize
Constructor Details
This class inherits a constructor from BrNfe::ActiveModelBase
Instance Attribute Details
#aliquota ⇒ Object
Returns the value of attribute aliquota.
52 53 54 |
# File 'lib/br_nfe/servico/rps.rb', line 52 def aliquota @aliquota end |
#base_calculo ⇒ Object
Returns the value of attribute base_calculo.
53 54 55 |
# File 'lib/br_nfe/servico/rps.rb', line 53 def base_calculo @base_calculo end |
#codigo_art ⇒ Object
Returns the value of attribute codigo_art.
40 41 42 |
# File 'lib/br_nfe/servico/rps.rb', line 40 def codigo_art @codigo_art end |
#codigo_cnae ⇒ Object
Returns the value of attribute codigo_cnae.
66 67 68 |
# File 'lib/br_nfe/servico/rps.rb', line 66 def codigo_cnae @codigo_cnae end |
#codigo_municipio ⇒ Object
Returns the value of attribute codigo_municipio.
62 63 64 |
# File 'lib/br_nfe/servico/rps.rb', line 62 def codigo_municipio @codigo_municipio end |
#codigo_obra ⇒ Object
Para construção civil
39 40 41 |
# File 'lib/br_nfe/servico/rps.rb', line 39 def codigo_obra @codigo_obra end |
#codigo_pais ⇒ Object
Returns the value of attribute codigo_pais.
64 65 66 |
# File 'lib/br_nfe/servico/rps.rb', line 64 def codigo_pais @codigo_pais end |
#codigo_tributacao_municipio ⇒ Object
Returns the value of attribute codigo_tributacao_municipio.
59 60 61 |
# File 'lib/br_nfe/servico/rps.rb', line 59 def codigo_tributacao_municipio @codigo_tributacao_municipio end |
#competencia ⇒ Object
Returns the value of attribute competencia.
32 33 34 |
# File 'lib/br_nfe/servico/rps.rb', line 32 def competencia @competencia end |
#data_emissao ⇒ Object
Returns the value of attribute data_emissao.
30 31 32 |
# File 'lib/br_nfe/servico/rps.rb', line 30 def data_emissao @data_emissao end |
#desconto_condicionado ⇒ Object
Returns the value of attribute desconto_condicionado.
55 56 57 |
# File 'lib/br_nfe/servico/rps.rb', line 55 def desconto_condicionado @desconto_condicionado end |
#desconto_incondicionado ⇒ Object
Returns the value of attribute desconto_incondicionado.
54 55 56 |
# File 'lib/br_nfe/servico/rps.rb', line 54 def desconto_incondicionado @desconto_incondicionado end |
#discriminacao ⇒ Object
Returns the value of attribute discriminacao.
60 61 62 |
# File 'lib/br_nfe/servico/rps.rb', line 60 def discriminacao @discriminacao end |
#exigibilidade_iss ⇒ Object
Returns the value of attribute exigibilidade_iss.
61 62 63 |
# File 'lib/br_nfe/servico/rps.rb', line 61 def exigibilidade_iss @exigibilidade_iss end |
#iss_retido ⇒ Object
Returns the value of attribute iss_retido.
50 51 52 |
# File 'lib/br_nfe/servico/rps.rb', line 50 def iss_retido @iss_retido end |
#item_lista_servico ⇒ Object
Returns the value of attribute item_lista_servico.
58 59 60 |
# File 'lib/br_nfe/servico/rps.rb', line 58 def item_lista_servico @item_lista_servico end |
#municipio_incidencia ⇒ Object
Returns the value of attribute municipio_incidencia.
63 64 65 |
# File 'lib/br_nfe/servico/rps.rb', line 63 def municipio_incidencia @municipio_incidencia end |
#numero ⇒ Object
Returns the value of attribute numero.
26 27 28 |
# File 'lib/br_nfe/servico/rps.rb', line 26 def numero @numero end |
#numero_processo ⇒ Object
Returns the value of attribute numero_processo.
65 66 67 |
# File 'lib/br_nfe/servico/rps.rb', line 65 def numero_processo @numero_processo end |
#numero_substituicao ⇒ Object
Returns the value of attribute numero_substituicao.
34 35 36 |
# File 'lib/br_nfe/servico/rps.rb', line 34 def numero_substituicao @numero_substituicao end |
#outras_informacoes ⇒ Object
Returns the value of attribute outras_informacoes.
67 68 69 |
# File 'lib/br_nfe/servico/rps.rb', line 67 def outras_informacoes @outras_informacoes end |
#outras_retencoes ⇒ Object
Returns the value of attribute outras_retencoes.
49 50 51 |
# File 'lib/br_nfe/servico/rps.rb', line 49 def outras_retencoes @outras_retencoes end |
#responsavel_retencao ⇒ Object
Returns the value of attribute responsavel_retencao.
57 58 59 |
# File 'lib/br_nfe/servico/rps.rb', line 57 def responsavel_retencao @responsavel_retencao end |
#serie ⇒ Object
Returns the value of attribute serie.
27 28 29 |
# File 'lib/br_nfe/servico/rps.rb', line 27 def serie @serie end |
#serie_substituicao ⇒ Object
Returns the value of attribute serie_substituicao.
35 36 37 |
# File 'lib/br_nfe/servico/rps.rb', line 35 def serie_substituicao @serie_substituicao end |
#status ⇒ Object
Returns the value of attribute status.
31 32 33 |
# File 'lib/br_nfe/servico/rps.rb', line 31 def status @status end |
#tipo ⇒ Object
Returns the value of attribute tipo.
28 29 30 |
# File 'lib/br_nfe/servico/rps.rb', line 28 def tipo @tipo end |
#tipo_substituicao ⇒ Object
Returns the value of attribute tipo_substituicao.
36 37 38 |
# File 'lib/br_nfe/servico/rps.rb', line 36 def tipo_substituicao @tipo_substituicao end |
#validar_recepcao_rps ⇒ Object
Returns the value of attribute validar_recepcao_rps.
8 9 10 |
# File 'lib/br_nfe/servico/rps.rb', line 8 def validar_recepcao_rps @validar_recepcao_rps end |
#valor_cofins ⇒ Object
Returns the value of attribute valor_cofins.
45 46 47 |
# File 'lib/br_nfe/servico/rps.rb', line 45 def valor_cofins @valor_cofins end |
#valor_csll ⇒ Object
Returns the value of attribute valor_csll.
48 49 50 |
# File 'lib/br_nfe/servico/rps.rb', line 48 def valor_csll @valor_csll end |
#valor_deducoes ⇒ Object
Returns the value of attribute valor_deducoes.
43 44 45 |
# File 'lib/br_nfe/servico/rps.rb', line 43 def valor_deducoes @valor_deducoes end |
#valor_inss ⇒ Object
Returns the value of attribute valor_inss.
46 47 48 |
# File 'lib/br_nfe/servico/rps.rb', line 46 def valor_inss @valor_inss end |
#valor_ir ⇒ Object
Returns the value of attribute valor_ir.
47 48 49 |
# File 'lib/br_nfe/servico/rps.rb', line 47 def valor_ir @valor_ir end |
#valor_iss ⇒ Object
Returns the value of attribute valor_iss.
51 52 53 |
# File 'lib/br_nfe/servico/rps.rb', line 51 def valor_iss @valor_iss end |
#valor_pis ⇒ Object
Returns the value of attribute valor_pis.
44 45 46 |
# File 'lib/br_nfe/servico/rps.rb', line 44 def valor_pis @valor_pis end |
#valor_servicos ⇒ Object
Returns the value of attribute valor_servicos.
42 43 44 |
# File 'lib/br_nfe/servico/rps.rb', line 42 def valor_servicos @valor_servicos end |
Instance Method Details
#contem_substituicao? ⇒ Boolean
69 70 71 |
# File 'lib/br_nfe/servico/rps.rb', line 69 def contem_substituicao? numero_substituicao.present? && serie_substituicao.present? && tipo_substituicao.present? end |
#default_values ⇒ Object
81 82 83 84 85 86 |
# File 'lib/br_nfe/servico/rps.rb', line 81 def default_values { codigo_pais: '1058', validar_recepcao_rps: false } end |
#iss_retido? ⇒ Boolean
73 74 75 |
# File 'lib/br_nfe/servico/rps.rb', line 73 def iss_retido? BrNfe.true_values.include?(iss_retido) end |