Ir para conteúdo
  • Cadastre-se

dev botao

Retorno Numero Documento Passo Fundo RS (ACBRLibNFSe)


Ver Solução Respondido por Italo Giurizzato Junior,
  • Este tópico foi criado há 263 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Recommended Posts

  • Membros Pro
Postado

Boa tarde,


Estou testando a emissão pela prefeitura de passo fundo (RS), e não está retornando no envio da nota, no campo "NumeroNota", o número da nota gerada pela prefeitura. Nesse caso, a biblioteca retorna a nota enviada (XML, através do método obterXml), mas não traz no campo o numero da nota:

RETORNO EMISSAO: { "Envio" : { "CodigoVerificacao" : "", "Data" : "2024-02-15T15:01:33.000Z", "Link" : "", "Lote" : "2021600", "MaxRps" : 50, "ModoEnvio" : "Enviar Lote Ass?ncrono", "NumeroNota" : "", "Protocolo" : "19897482", "Situacao" : "", "Sucesso" : true, "XmlEnvio" : "<EnviarLoteRpsEnvio xmlns=\"http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd\"><LoteRps id=\"Lote_2021600\"><NumeroLote>2021600</NumeroLote><Cnpj>04442366000171</Cnpj><InscricaoMunicipal>38747</InscricaoMunicipal><QuantidadeRps>1</QuantidadeRps><ListaRps><Rps><InfRps id=\"Rps_20216001\"><IdentificacaoRps><Numero>2021600</Numero><Serie>1</Serie><Tipo>1</Tipo></IdentificacaoRps><DataEmissao>2024-02-15T00:00:00</DataEmissao><NaturezaOperacao>52</NaturezaOperacao><OptanteSimplesNacional>2</OptanteSimplesNacional><IncentivadorCultural>2</IncentivadorCultural><Status>1</Status><Servico><Valores><ValorServicos>1.00</ValorServicos><ValorPis>0.00</ValorPis><ValorCofins>0.00</ValorCofins><ValorInss>0.00</ValorInss><ValorIr>0.00</ValorIr><ValorCsll>0.00</ValorCsll><IssRetido>2</IssRetido><ValorIss>0.00</ValorIss><BaseCalculo>1.00</BaseCalculo><Aliquota>0.0200</Aliquota><ValorLiquidoNfse>1.00</ValorLiquidoNfse></Valores><ItemListaServico>17.01</ItemListaServico><CodigoCnae>4644302</CodigoCnae><Discriminacao>PRESTA??O DE SERVI?O - PRA - 1900 x 2,77. - R$ 1,00</Discriminacao><CodigoMunicipio>4314100</CodigoMunicipio></Servico><Prestador><Cnpj>04442366000171</Cnpj><InscricaoMunicipal>38747</InscricaoMunicipal></Prestador><Tomador><IdentificacaoTomador><CpfCnpj><Cnpj>11468382000107</Cnpj></CpfCnpj></IdentificacaoTomador><RazaoSocial>SOLLUCAO - NEGOCIOS CORPORATIVOS S/S LTDA</RazaoSocial><Endereco><Endereco>AV FLORES DA CUNHA</Endereco><Numero>2455</Numero><Bairro>CENTRO</Bairro><CodigoMunicipio>4304705</CodigoMunicipio><Uf>RS</Uf><Cep>99500000</Cep></Endereco></Tomador></InfRps><Signature xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><SignedInfo><CanonicalizationMethod Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"></CanonicalizationMethod><SignatureMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#rsa-sha1\"></SignatureMethod><Reference URI=\"#Rps_20216001\"><Transforms><Transform Algorithm=\"http://www.w3.org/2000/09/xmldsig#enveloped-signature\"></Transform><Transform Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"></Transform></Transforms><DigestMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#sha1\"></DigestMethod><DigestValue>4bPK8mT91tcrVyqUX7MmCBAtm/Q=</DigestValue></Reference></SignedInfo><SignatureValue>m4wnDIM8/sacOqYyLSyay90KzVx1kmjsEQYlQF0tyFprMelQcnxgPezvL2D8eY51WXfTFulZSRgoEWbk0Nvyi2co67HMh006n8V8nPQWqnVkD6nQbW/CKDji4PM5PRN+TIcZ8tFNIM+UGPJp9Me8xGcovrGvxHlqN/3TP78W6yWu80dL0BG62UEisn4dj0QtJ6R9vD+CH5fmrxNqcJ7J9DKPFNIeFEczd0sxi+VR2+3hgHGOIYkiraJiOdb1FDY3wmnv9bGu5mAVXZE4avxV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VHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4ICAQBVnfKvYG7j6cBe53JPukqpwCzixDVlIFbc9BIoZmyiObdW3HXoRijbhCqZuRBLxIBYsn4xXX9BV1zo7edwW2N3jZ/1ESyfBSMRpMnxGPtHpK56MnP5A+Hprc++ffvAKvaISESV59sAL/GF2DGC25NRo3I4yqumwCyIblIV3VKhegiooiz0tkxPSWu2mgByKO1/gB3YoDuJBMbxGN/Gn1cjDyjfJJFB3FKlKX7mMVRoBf58rJTNA4ht60KXcuQQaLXpDNvnNZOG73QFSBpbVyVfoTIdQjVeHrQA2Ce4WxdFVyc+1iOfKVp7pLIAIN+Kv8TwDx6c0wVDX5gkuX0jdQ9jcC/ylF1BgW9RR4I0iowI/VUFPJ0MGS7kykR1N7PvWgE9Q7tfxtTg5WNEk/3I5QumXChxM0eGgq9loDJODtSns0n2dudkfjRFwqa4vHkGoyyZh0axjM1kPdtMUeZz1CdA+U5E7Waie3qOV7fmhfAA//UB+lOOXyQrP5WM55kVAZjZKmzrRNHbAA0zEZu1n9kgsCko0np9nbO2RqAnbUacglzPjgTrvS+sPjk/B/S+b3gt4paEFNBXlVcC0bUEzX+ev+luu3V5tYdkt7DujY03qyRPtHbVbF3wQeHY+C4VbgRoXjsl91iHe3p8Euf/96YJnbJrPIJxm+rbPuXdF7oO6g==</X509Certificate></X509Data></KeyInfo></Signature></Rps></ListaRps></LoteRps><Signature xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><SignedInfo><CanonicalizationMethod Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"></CanonicalizationMethod><SignatureMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#rsa-sha1\"></SignatureMethod><Reference URI=\"#Lote_2021600\"><Transforms><Transform Algorithm=\"http://www.w3.org/2000/09/xmldsig#enveloped-signature\"></Transform><Transform Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"></Transform></Transforms><DigestMethod Algorithm=\"http://www.w3.org/2000/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uXdF7oO6g==</X509Certificate></X509Data></KeyInfo></Signature></EnviarLoteRpsEnvio>", "XmlRetorno" : "<EnviarLoteRpsResposta xmlns=\"http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd\"><NumeroLote>2021600</NumeroLote><DataRecebimento>2024-02-15T15:01:33.578-03:00</DataRecebimento><Protocolo>19897482</Protocolo><ListaMensagemRetorno></ListaMensagemRetorno></EnviarLoteRpsResposta>" } }

 

No município de Carazinho *RS(, está funcionando normalmente.

Aguardo.

  • Consultores
  • Solution
Postado

Bom dia @LeonardoRocha,

A cidade de Passo Fundo/RS se utiliza do provedor Thema que trabalha com a versão 1 do layout da ABRASF.

Sendo assim, após o envio se faz necessário Consultar a situação do lote.

Se a situação for 3 ou 4 devemos consultar o Lote.

É nesta ultima consulta que vamos ter a lista de erros se a situação for 3 ou a lista de notas se a situação for 4.

Para mais informações sobre os provedores que seguem a versão 1 do layout da ABRASF, por favor leia o tópico abaixo.

 

Consultor SAC ACBr

Italo Giurizzato Junior
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr

Analista de Sistemas / Araraquara-SP

Araraquara - A era dos Trólebus

  • 2 semanas depois ...
  • Membros Pro
Postado

Boa tarde,

Estava validando, e já tenho marcado o parametro ConsultaLoteAposEnvio = 1 (SIM) para consultar o lote após o envio. 

Porém, após esta consulta (que entendo que o componente já executa automaticamente), ele não retorna o numero do documento. Tenho que realizar algum processo a mais?

Entendo que ele está realizando este processo, pois nos testes, tive algumas rejeições que trouxeram no componente.

  • Membros Pro
Postado

Boa noite Pessoal,

 

Complementando: Testei novamente, e a biblioteca retorna o XML quando peço pra ele gravar o XML:

<?xml version=\"1.0\" encoding=\"UTF-8\"?><CompNfse><Nfse><InfNfse><Numero>202443<\/Numero><CodigoVerificacao>207113565<\/CodigoVerificacao><DataEmissao>2024-02-27T21:54:46.000-03:00<\/DataEmissao><IdentificacaoRps><Numero>96022<\/Numero><Serie>1<\/Serie><Tipo>1<\/Tipo><\/IdentificacaoRps><DataEmissaoRps>2024-02-27-03:00<\/DataEmissaoRps><NaturezaOperacao>52<\/NaturezaOperacao><OptanteSimplesNacional>2<\/OptanteSimplesNacional><IncentivadorCultural>2<\/IncentivadorCultural><Competencia>2024-02-27T00:00:00.000-03:00<\/Competencia><Servico><Valores><ValorServicos>1<\/ValorServicos><ValorDeducoes>0<\/ValorDeducoes><ValorPis>0<\/ValorPis><ValorCofins>0<\/ValorCofins><ValorInss>0<\/ValorInss><ValorIr>0<\/ValorIr><ValorCsll>0<\/ValorCsll><IssRetido>2<\/IssRetido><ValorIss>0<\/ValorIss><ValorIssRetido>0<\/ValorIssRetido><OutrasRetencoes>0<\/OutrasRetencoes><BaseCalculo>1<\/BaseCalculo><Aliquota>0.02<\/Aliquota><ValorLiquidoNfse>1<\/ValorLiquidoNfse><DescontoIncondicionado>0<\/DescontoIncondicionado><DescontoCondicionado>0<\/DescontoCondicionado><\/Valores><ItemListaServico>1401<\/ItemListaServico><CodigoCnae>3314711<\/CodigoCnae><CodigoTributacaoMunicipio><\/CodigoTributacaoMunicipio><Discriminacao>PRESTACAO DE SERVICO - CONSERTOS (14.01) CONSERTO DE APARELHO ULTRASSON E PROBE. OC 4506188395 - R$ 1,00<\/Discriminacao><CodigoMunicipio>4314100<\/CodigoMunicipio><\/Servico><PrestadorServico><IdentificacaoPrestador><Cnpj>04442366000171<\/Cnpj><InscricaoMunicipal>38747<\/InscricaoMunicipal><\/IdentificacaoPrestador><RazaoSocial>BRETANHA IMPORTACAO E EXPORTACAO LTDA<\/RazaoSocial><NomeFantasia><\/NomeFantasia><Endereco><Endereco>RUA CAROLINA FISCH DE MATTOS<\/Endereco><Numero>401<\/Numero><Complemento><\/Complemento><Bairro>ROSELANDIA<\/Bairro><CodigoMunicipio>4314100<\/CodigoMunicipio><Uf>RS<\/Uf><Cep>99064310<\/Cep><\/Endereco><Contato><Telefone>5435813486<\/Telefone><Email>[email protected]<\/Email><\/Contato><\/PrestadorServico><TomadorServico><IdentificacaoTomador><CpfCnpj><Cpf><\/Cpf><Cnpj>11468382000107<\/Cnpj><\/CpfCnpj><InscricaoMunicipal><\/InscricaoMunicipal><\/IdentificacaoTomador><RazaoSocial>SOLLUCAO - NEGOCIOS CORPORATIVOS S/S LTDA<\/RazaoSocial><Endereco><Endereco>AV FLORES DA CUNHA<\/Endereco><Numero>2455<\/Numero><Complemento><\/Complemento><Bairro>CENTRO<\/Bairro><CodigoMunicipio>4304705<\/CodigoMunicipio><Uf>RS<\/Uf><Cep>99500000<\/Cep><\/Endereco><Contato><Telefone><\/Telefone><Email><\/Email><\/Contato><\/TomadorServico><IntermediarioServico><\/IntermediarioServico><OrgaoGerador><CodigoMunicipio>4314100<\/CodigoMunicipio><Uf>RS<\/Uf><\/OrgaoGerador><ContrucaoCivil><\/ContrucaoCivil><\/InfNfse><\/Nfse><\/CompNfse

Só que no primeiro retorno, ele não tem no campo próprio o "NumeroNota":

RETORNO EMISSAO: { "Envio" : { "CodigoVerificacao" : "", "Data" : "2024-02-27T21:54:46.000Z", "Link" : "", "Lote" : "96022", "MaxRps" : 50, "ModoEnvio" : "Enviar Lote Ass�ncrono", "NumeroNota" : "", "Protocolo" : "20047345", "Situacao" : "", "Sucesso" : true, "XmlEnvio" : "<EnviarLoteRpsEnvio xmlns=\"http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd\"><LoteRps id=\"Lote_96022\"><NumeroLote>96022</NumeroLote><Cnpj>04442366000171</Cnpj><InscricaoMunicipal>38747</InscricaoMunicipal><QuantidadeRps>1</QuantidadeRps><ListaRps><Rps><InfRps id=\"Rps_960221\"><IdentificacaoRps><Numero>96022</Numero><Serie>1</Serie><Tipo>1</Tipo></IdentificacaoRps><DataEmissao>2024-02-27T00:00:00</DataEmissao><NaturezaOperacao>52</NaturezaOperacao><OptanteSimplesNacional>2</OptanteSimplesNacional><IncentivadorCultural>2</IncentivadorCultural><Status>1</Status><Servico><Valores><ValorServicos>1.00</ValorServicos><ValorPis>0.00</ValorPis><ValorCofins>0.00</ValorCofins><ValorInss>0.00</ValorInss><ValorIr>0.00</ValorIr><ValorCsll>0.00</ValorCsll><IssRetido>2</IssRetido><ValorIss>0.00</ValorIss><BaseCalculo>1.00</BaseCalculo><Aliquota>0.0200</Aliquota><ValorLiquidoNfse>1.00</ValorLiquidoNfse></Valores><ItemListaServico>14.01</ItemListaServico><CodigoCnae>3314711</CodigoCnae><Discriminacao>PRESTACAO DE SERVICO - CONSERTOS (14.01) CONSERTO DE APARELHO ULTRASSON E PROBE. OC 4506188395 - R$ 1,00</Discriminacao><CodigoMunicipio>4314100</CodigoMunicipio></Servico><Prestador><Cnpj>04442366000171</Cnpj><InscricaoMunicipal>38747</InscricaoMunicipal></Prestador><Tomador><IdentificacaoTomador><CpfCnpj><Cnpj>11468382000107</Cnpj></CpfCnpj></IdentificacaoTomador><RazaoSocial>SOLLUCAO - NEGOCIOS CORPORATIVOS S/S LTDA</RazaoSocial><Endereco><Endereco>AV FLORES DA CUNHA</Endereco><Numero>2455</Numero><Bairro>CENTRO</Bairro><CodigoMunicipio>4304705</CodigoMunicipio><Uf>RS</Uf><Cep>99500000</Cep></Endereco></Tomador></InfRps><Signature xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><SignedInfo><CanonicalizationMethod Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"></CanonicalizationMethod><SignatureMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#rsa-sha1\"></SignatureMethod><Reference URI=\"#Rps_960221\"><Transforms><Transform Algorithm=\"http://www.w3.org/2000/09/xmldsig#enveloped-signature\"></Transform><Transform Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"></Transform></Transforms><DigestMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#sha1\"></DigestMethod><DigestValue>sDdz+IC7kKaYPlCrAyoNwtESwrk=</DigestValue></Reference></SignedInfo><SignatureValue>VLECLoc3HB3s/qLl2xxoTkKhsGYiMS/itzd8hKlNMm/Kc05Cav9grRN76L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UVVBRFJPUyBGSUxIT6AZBgVgTAEDA6AQEw4wNDQ0MjM2NjAwMDE3MaA4BgVgTAEDBKAvEy0wMjA3MTk2ODU4NTM4NzM5OTcyMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDCgFwYFYEwBAwegDhMMMDAwMDAwMDAwMDAwMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDBDAJBgNVHRMEAjAAMA0GCSqGSIb3DQEBCwUAA4ICAQBVnfKvYG7j6cBe53JPukqpwCzixDVlIFbc9BIoZmyiObdW3HXoRijbhCqZuRBLxIBYsn4xXX9BV1zo7edwW2N3jZ/1ESyfBSMRpMnxGPtHpK56MnP5A+Hprc++ffvAKvaISESV59sAL/GF2DGC25NRo3I4yqumwCyIblIV3VKhegiooiz0tkxPSWu2mgByKO1/gB3YoDuJBMbxGN/Gn1cjDyjfJJFB3FKlKX7mMVRoBf58rJTNA4ht60KXcuQQaLXpDNvnNZOG73QFSBpbVyVfoTIdQjVeHrQA2Ce4WxdFVyc+1iOfKVp7pLIAIN+Kv8TwDx6c0wVDX5gkuX0jdQ9jcC/ylF1BgW9RR4I0iowI/VUFPJ0MGS7kykR1N7PvWgE9Q7tfxtTg5WNEk/3I5QumXChxM0eGgq9loDJODtSns0n2dudkfjRFwqa4vHkGoyyZh0axjM1kPdtMUeZz1CdA+U5E7Waie3qOV7fmhfAA//UB+lOOXyQrP5WM55kVAZjZKmzrRNHbAA0zEZu1n9kgsCko0np9nbO2RqAnbUacglzPjgTrvS+sPjk/B/S+b3gt4paEFNBXlVcC0bUEzX+ev+luu3V5tYdkt7DujY03qyRPtHbVbF3wQeHY+C4VbgRoXjsl91iHe3p8Euf/96YJnbJrPIJxm+rbPuXdF7oO6g==</X509Certificate></X509Data></KeyInfo></Signature></Rps></ListaRps></LoteRps><Signature xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><SignedInfo><CanonicalizationMethod Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"></CanonicalizationMethod><SignatureMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#rsa-sha1\"></SignatureMethod><Reference URI=\"#Lote_96022\"><Transforms><Transform Algorithm=\"http://www.w3.org/2000/09/xmldsig#enveloped-signature\"></Transform><Transform Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315\"></Transform></Transforms><DigestMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#sha1\"></DigestMethod><DigestValue>P83P2Fn1qGrgXOLx4hSPTHVisWQ=</DigestValue></Reference></SignedInfo><SignatureValue>ZeGM7u8Vpzfqgoq2KTQPMRT8O/LyU17Jfkr9B8vwEJRkyB563ANjb0tTanD4mQEfYiccUpcm+mtXhK0258t8FbPPuutzrRunn4lSXZHw1ewl7QyR7Mm5QwlalYsgTsmdMu1eUOk5sxAGoBUY6Z3tARC8Dp2Zicmf56OyT/86+FENgwU6GL7exdX6idxkhXAvaKTWd3fU7nIrhmTGGSzLrAwqvHpNOhTmoBtEbcfcG2smMflJKPgDrNCRQUmKb9snoPpPqdUF9lyXIFbMfsuhH2sTjWMEC74RhrMcuKjRVXE897pAGvHQHcjRj+XqwO/oEASqxpXiHOY+D2SZ1hfXDQ==</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIH/jCCBeagAwIBAgIIawDkJ/QHEtUwDQYJKoZIhvcNAQELBQAwdjELMAkGA1UEBhMCQlIxEzARBgNVBAoTCklDUC1CcmFzaWwxNjA0BgNVBAsTLVNlY3JldGFyaWEgZGEgUmVjZWl0YSBGZWRlcmFsIGRvIEJyYXNpbCAtIFJGQjEaMBgGA1UEAxMRQUMgU0FGRVdFQiBSRkIgdjUwHhcNMjMwODE0MTc1MTQ4WhcNMjQwODE0MTc1MTQ4WjCCAQgxCzAJBgNVBAYTAkJSMRMwEQYDVQQKEwpJQ1AtQnJhc2lsMQswCQYDVQQIEwJSUzEUMBIGA1UEBxMLUEFTU08gRlVORE8xNjA0BgNVBAsTLVNlY3JldGFyaWEgZGEgUmVjZ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PdtMUeZz1CdA+U5E7Waie3qOV7fmhfAA//UB+lOOXyQrP5WM55kVAZjZKmzrRNHbAA0zEZu1n9kgsCko0np9nbO2RqAnbUacglzPjgTrvS+sPjk/B/S+b3gt4paEFNBXlVcC0bUEzX+ev+luu3V5tYdkt7DujY03qyRPtHbVbF3wQeHY+C4VbgRoXjsl91iHe3p8Euf/96YJnbJrPIJxm+rbPuXdF7oO6g==</X509Certificate></X509Data></KeyInfo></Signature></EnviarLoteRpsEnvio>", "XmlRetorno" : "<EnviarLoteRpsResposta xmlns=\"http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd\"><NumeroLote>96022</NumeroLote><DataRecebimento>2024-02-27T21:54:46.774-03:00</DataRecebimento><Protocolo>20047345</Protocolo><ListaMensagemRetorno></ListaMensagemRetorno></EnviarLoteRpsResposta>" } }

Estou usando a biblioteca em Java, e executo:

String ret = acbrNFSe.emitir(codrps.toString(), 0, false);
System.out.println("RETORNO EMISSAO: " + ret);
acbrNFSe.obterXml(0);
acbrNFSe.gravarXml(0, numberString);
String numnot = retornoEmissao.getJSONObject("Envio").get("NumeroNota").toString();

Nesse caso, tem outra forma de executar o código acima para obter o Numero da Nota, para ter no campo próprio do retorno da emissão essa informação?

  • 2 semanas depois ...
  • Consultores
Postado

Bom dia!

Apenas para desencargo, por favor, tente efetuar um teste usando o método de consulta manualmente após usar o método de envio e veja se ele lhe devolve todas as informações.

Consultor SAC ACBr

Diego Folieni
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.  Discord

Projeto ACBr - A maior comunidade Open Source de Automação Comercial do Brasil


Participe de nosso canal no Discord e fique ainda mais próximo da Comunidade !!

×
×
  • Criar Novo...

Informação Importante

Colocamos cookies em seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies, caso contrário, assumiremos que você está bem para continuar.