nfse-carioca 0.2.12 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nfse_carioca/gerar_nfse.rb +4 -6
- data/lib/nfse_carioca/version.rb +1 -1
- data/spec/lib/nfse_carioca/gerar_nfse_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b152687ad53f4b02ff12f78b0aab7da9a897eb6
|
4
|
+
data.tar.gz: 6aa4717c3a074c8ee596bf67d94c21cabdfb5bef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf4dcb9cc09afc50bcefeb2e82a1526da10c26bba4d3c2f913aa622638e4a857e79c9066cb56b1845733fd23bdd19fb7edaf9100ba3b157705ec7f0181d5e950
|
7
|
+
data.tar.gz: 35de43fd1c8a0dfa3c2adc6682cfea36824596c1355d61a6752f69287b64d7b3a294bf69b35ba52b5e039a693b8d04178afdf74278d8ec570381e5427e5fed89
|
@@ -32,14 +32,12 @@ module NfseCarioca
|
|
32
32
|
def errors
|
33
33
|
if error?
|
34
34
|
message = content["ListaMensagemRetorno"]["MensagemRetorno"]
|
35
|
-
if message.is_a?(Hash)
|
36
|
-
|
37
|
-
|
38
|
-
message.map(&:inspect).join("\n")
|
39
|
-
end
|
35
|
+
message = [message] if message.is_a?(Hash)
|
36
|
+
|
37
|
+
message
|
40
38
|
end
|
41
39
|
rescue
|
42
|
-
content
|
40
|
+
content
|
43
41
|
end
|
44
42
|
end
|
45
43
|
end
|
data/lib/nfse_carioca/version.rb
CHANGED
@@ -104,7 +104,7 @@ RSpec.describe NfseCarioca::GerarNfse do
|
|
104
104
|
end
|
105
105
|
|
106
106
|
it "responds with error message E10 " do
|
107
|
-
expect(response.errors).to eq
|
107
|
+
expect(response.errors).to eq [{"Codigo"=>"E10", "Mensagem"=>"RPS já informado.", "Correcao"=>"Para essa Inscrição Municipal/CNPJ já existe um RPS informado com o mesmo número, série e tipo."}]
|
108
108
|
end
|
109
109
|
end
|
110
110
|
|