inovadora_xml 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,11 +4,11 @@ module InovadoraXml
4
4
  module DadosNfseService
5
5
  def get_numero_lote_rps
6
6
  self.fnnfse.build_fnnfses_sancionada if self.fnnfse.fnnfses_sancionada.blank?
7
- if self.fnnfse.fnnfses_sancionada.numero_rps.to_s == ""
8
- self.fnnfse.fnnfses_sancionada.numero_rps = self.fnnfse.class.connection.select_value("SELECT nextval('gestho.prox_nro_rps_nfse')")
9
- self.fnnfse.fnnfses_sancionada.save
10
- end
11
- return self.fnnfse.fnnfses_sancionada.numero_rps
7
+ (self.fnnfse.fnnfses_sancionada.numero_rps = self.fnnfse.class.connection.select_value("SELECT nextval('gestho.prox_nro_rps_nfse')")) if self.fnnfse.fnnfses_sancionada.numero_rps.to_s == ""
8
+
9
+ self.fnnfse.fnnfses_sancionada.numero_lote_rps = self.fnnfse.class.connection.select_value("SELECT nextval('gestho.prox_nro_lote_rps_nfse')")
10
+ self.fnnfse.fnnfses_sancionada.save
11
+ return self.fnnfse.fnnfses_sancionada.numero_lote_rps
12
12
  end
13
13
 
14
14
  def get_itens_servicos
@@ -1,3 +1,3 @@
1
1
  module InovadoraXml
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inovadora_xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: