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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return self.fnnfse.fnnfses_sancionada.
|
|
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
|