From 0e041783c9dfd60dff663e6d0ab0c96b9aa6f35f Mon Sep 17 00:00:00 2001 From: Luiz Kim Date: Mon, 27 Nov 2023 16:09:51 -0300 Subject: [PATCH] GNRE --- README.md | 6 +- .../CertificatePfxFileOperation.php | 1 - .../Gnre/Exception/CannotOpenCertificate.php | 2 +- lib/Sped/Gnre/Helper/GnreHelper.php | 4 +- lib/Sped/Gnre/Sefaz/ConfigUf.php | 4 +- lib/Sped/Gnre/Sefaz/Consulta.php | 4 +- lib/Sped/Gnre/Sefaz/Guia.php | 22 +- lib/Sped/Gnre/Sefaz/Lote.php | 8 +- testes/Sefaz/ConfigUfTest.php | 6 +- testes/Sefaz/ConsultaTest.php | 6 +- testes/Sefaz/LoteTest.php | 10 +- xsd/v1/config_uf_v1.00.xsd | 4 +- xsd/v1/consulta_config_uf_v1.00.xsd | 4 +- xsd/v1/lote_gnre_consulta_v1.00.xsd | 2 +- xsd/v1/lote_gnre_recibo_v1.00.xsd | 2 +- xsd/v1/lote_gnre_result_v1.00.xsd | 2 +- xsd/v1/lote_gnre_v1.00.xsd | 1107 ++++++++--------- xsd/v1/tiposBasicoGNRE_v1.00.xsd | 2 +- xsd/v2/dados_gnre_v2.00.xsd | 2 +- xsd/v2/lote_gnre_result_v2.00.xsd | 2 +- xsd/v2/lote_gnre_v2.00.xsd | 2 +- xsd/v2/tiposBasicoGNRE_v2.00.xsd | 6 +- 22 files changed, 603 insertions(+), 605 deletions(-) diff --git a/README.md b/README.md index 4f6a8f5..5b90361 100755 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Antes de usar a API - É necessário entrar em contato com a SEFAZ de cada estado pedindo liberação do serviço de emissão de GNRE. -- Leita todos os tópicos no FAQ oficial em https://www.gnre.pe.gov.br/gnre/portal/faq.jsp. Os tópicos abordados são muito úteis para quem está começando nesse serviço. +- Leita todos os tópicos no FAQ oficial em http://www.gnre.pe.gov.br/gnre/portal/faq.jsp. Os tópicos abordados são muito úteis para quem está começando nesse serviço. GNRE PHP ================= @@ -88,10 +88,10 @@ Informações úteis |Descrição|Endereço| |---------|--------| |Grupo de discussão | https://groups.google.com/forum/#!forum/gnrephp| -|Site oficial do governo | https://www.gnre.pe.gov.br/gnre/index.html| +|Site oficial do governo | http://www.gnre.pe.gov.br/gnre/index.html| |Site do Projeto | http://nfephp-org.github.io/sped-gnre/| |Wiki, onde é possível encontrar maiores informações de como utilizar a API | https://github.com/nfephp-org/sped-gnre/wiki| -|Site oficial da SEFAZ de todo os estados|https://www.gnre.pe.gov.br/gnre/portal/linksUteis.jsp| +|Site oficial da SEFAZ de todo os estados|http://www.gnre.pe.gov.br/gnre/portal/linksUteis.jsp| 1. Antes de gerar qualquer guia GNRE com o seu certificado, tenha **CERTEZA** que você possui autorização para isso. A geração de GNRE depende de cada estado, ou seja, se você deseja gerar a guia para o Acre (com destino ao Acre) tenha certeza que diff --git a/lib/Sped/Gnre/Configuration/CertificatePfxFileOperation.php b/lib/Sped/Gnre/Configuration/CertificatePfxFileOperation.php index 394012f..e6fcddf 100644 --- a/lib/Sped/Gnre/Configuration/CertificatePfxFileOperation.php +++ b/lib/Sped/Gnre/Configuration/CertificatePfxFileOperation.php @@ -77,7 +77,6 @@ public function open($password) $key = file_get_contents($this->filePath); $dataCertificate = array(); if (!openssl_pkcs12_read($key, $dataCertificate, $password)) { - print_r($dataCertificate); throw new CannotOpenCertificate($this->filePath); } diff --git a/lib/Sped/Gnre/Exception/CannotOpenCertificate.php b/lib/Sped/Gnre/Exception/CannotOpenCertificate.php index 731ddea..a0718ae 100644 --- a/lib/Sped/Gnre/Exception/CannotOpenCertificate.php +++ b/lib/Sped/Gnre/Exception/CannotOpenCertificate.php @@ -37,7 +37,7 @@ public function __construct($certificate) { parent::__construct( 'Não foi possível abrir o certificado ' . $certificate . ' verifique a senha informada', - 0, + null, null ); } diff --git a/lib/Sped/Gnre/Helper/GnreHelper.php b/lib/Sped/Gnre/Helper/GnreHelper.php index fcce7fa..c611dd0 100644 --- a/lib/Sped/Gnre/Helper/GnreHelper.php +++ b/lib/Sped/Gnre/Helper/GnreHelper.php @@ -62,7 +62,7 @@ public static function getGuiaGnre($xmlNf): Guia $guia->c03_idContribuinteEmitente = $xml->NrDocumentoEmpresa; $guia->c18_enderecoEmitente = $xml->EnderecoEmpresa; - $guia->c19_municipioEmitente = 15004;//$xml->CdMunicipioEmpresa; + $guia->c19_municipioEmitente = 15004; //$xml->CdMunicipioEmpresa; $guia->c20_ufEnderecoEmitente = $xml->UfEmpresa; $guia->c17_inscricaoEstadualEmitente = $xml->NrIEEmpresa; @@ -71,7 +71,7 @@ public static function getGuiaGnre($xmlNf): Guia $guia->c35_idContribuinteDestinatario = $xml->NrDocumentoCliente; $guia->c36_inscricaoEstadualDestinatario = $xml->NrIECliente; $guia->c37_razaoSocialDestinatario = $xml->NmCliente; - $guia->c38_municipioDestinatario = '06200';//$xml->CdMunicipioCliente; + $guia->c38_municipioDestinatario = '06200'; //$xml->CdMunicipioCliente; return $guia; } diff --git a/lib/Sped/Gnre/Sefaz/ConfigUf.php b/lib/Sped/Gnre/Sefaz/ConfigUf.php index f7cacde..bba02ab 100644 --- a/lib/Sped/Gnre/Sefaz/ConfigUf.php +++ b/lib/Sped/Gnre/Sefaz/ConfigUf.php @@ -57,8 +57,8 @@ public function getHeaderSoap() public function soapAction() { return $this->ambienteDeTeste ? - 'http://www.testegnre.pe.gov.br/gnreWS/services/GnreConfigUF' : - 'http://www.gnre.pe.gov.br/gnreWS/services/GnreConfigUF'; + 'https://www.testegnre.pe.gov.br/gnreWS/services/GnreConfigUF' : + 'https://www.gnre.pe.gov.br/gnreWS/services/GnreConfigUF'; } /** diff --git a/lib/Sped/Gnre/Sefaz/Consulta.php b/lib/Sped/Gnre/Sefaz/Consulta.php index 184b957..b41f81d 100644 --- a/lib/Sped/Gnre/Sefaz/Consulta.php +++ b/lib/Sped/Gnre/Sefaz/Consulta.php @@ -57,8 +57,8 @@ public function getHeaderSoap() public function soapAction() { return $this->ambienteDeTeste ? - 'http://www.testegnre.pe.gov.br/gnreWS/services/GnreResultadoLote' : - 'http://www.gnre.pe.gov.br/gnreWS/services/GnreResultadoLote'; + 'https://www.testegnre.pe.gov.br/gnreWS/services/GnreResultadoLote' : + 'https://www.gnre.pe.gov.br/gnreWS/services/GnreResultadoLote'; } /** diff --git a/lib/Sped/Gnre/Sefaz/Guia.php b/lib/Sped/Gnre/Sefaz/Guia.php index b74743a..2d29b13 100755 --- a/lib/Sped/Gnre/Sefaz/Guia.php +++ b/lib/Sped/Gnre/Sefaz/Guia.php @@ -47,7 +47,7 @@ class Guia /** * Para esse atributo é esperado um dado do tipo inteiro * para maiores informações visualizar a documentação oficial do GNRE - * https://www.gnre.pe.gov.br/gnre/index.html + * http://www.gnre.pe.gov.br/gnre/index.html * @var int */ private $c02_receita; @@ -55,7 +55,7 @@ class Guia /** * Para esse atributo é esperado um dado do tipo inteiro * para maiores informações visualizar a documentação oficial do GNRE - * https://www.gnre.pe.gov.br/gnre/index.html + * http://www.gnre.pe.gov.br/gnre/index.html * @var int */ private $c25_detalhamentoReceita; @@ -63,7 +63,7 @@ class Guia /** * Para esse atributo é esperado um dado do tipo inteiro * para maiores informações visualizar a documentação oficial do GNRE - * https://www.gnre.pe.gov.br/gnre/index.html + * http://www.gnre.pe.gov.br/gnre/index.html * @var int */ private $c26_produto; @@ -71,7 +71,7 @@ class Guia /** * Para esse atributo é esperado um dado do tipo inteiro * para maiores informações visualizar a documentação oficial do GNRE - * https://www.gnre.pe.gov.br/gnre/index.html + * http://www.gnre.pe.gov.br/gnre/index.html * @var int */ private $c27_tipoIdentificacaoEmitente; @@ -86,7 +86,7 @@ class Guia /** * Para esse atributo é esperado um dado do tipo inteiro * para maiores informações visualizar a documentação oficial do GNRE - * https://www.gnre.pe.gov.br/gnre/index.html + * http://www.gnre.pe.gov.br/gnre/index.html * @var int */ private $c28_tipoDocOrigem; @@ -94,7 +94,7 @@ class Guia /** * Para esse atributo é esperado um dado do tipo inteiro * para maiores informações visualizar a documentação oficial do GNRE - * https://www.gnre.pe.gov.br/gnre/index.html + * http://www.gnre.pe.gov.br/gnre/index.html * @var int */ private $c04_docOrigem; @@ -125,7 +125,7 @@ class Guia /** * Para esse atributo é esperado um dado do tipo inteiro * para maiores informações visualizar a documentação oficial do GNRE - * https://www.gnre.pe.gov.br/gnre/index.html + * http://www.gnre.pe.gov.br/gnre/index.html * @var int */ private $c15_convenio; @@ -183,7 +183,7 @@ class Guia /** * Para esse atributo é esperado um dado do tipo inteiro * para maiores informações visualizar a documentação oficial do GNRE - * https://www.gnre.pe.gov.br/gnre/index.html + * http://www.gnre.pe.gov.br/gnre/index.html * @var int */ private $c34_tipoIdentificacaoDestinatario; @@ -264,7 +264,7 @@ class Guia /** * Para esse atributo é esperado um dado do tipo string * para maiores informações visualizar a documentação oficial do GNRE - * https://www.gnre.pe.gov.br/gnre/index.html + * http://www.gnre.pe.gov.br/gnre/index.html * @var string */ private $c42_identificadorGuia; @@ -325,7 +325,7 @@ class Guia * Dados retornados pelo web service da SEFAZ com a situação * da guia, se foi processada com sucesso ou se houve erro. * Para maiores informações sobre esse item consulte - * a documentação de retorno em https://www.gnre.pe.gov.br/gnre/portal/downloads.jsp + * a documentação de retorno em http://www.gnre.pe.gov.br/gnre/portal/downloads.jsp * @var int */ private $retornoSituacaoGuia; @@ -334,7 +334,7 @@ class Guia * Dados retornados pelo web service da SEFAZ com o numero de sequencia * que a guia tem na SEFAZ. * Para maiores informações sobre esse item consulte - * a documentação de retorno em https://www.gnre.pe.gov.br/gnre/portal/downloads.jsp + * a documentação de retorno em http://www.gnre.pe.gov.br/gnre/portal/downloads.jsp * @var type */ private $retornoSequencialGuia; diff --git a/lib/Sped/Gnre/Sefaz/Lote.php b/lib/Sped/Gnre/Sefaz/Lote.php index 88d5011..8ebaa39 100755 --- a/lib/Sped/Gnre/Sefaz/Lote.php +++ b/lib/Sped/Gnre/Sefaz/Lote.php @@ -71,8 +71,8 @@ public function setEstadoFactory(EstadoFactory $estadoFactory) public function getHeaderSoap() { $action = $this->ambienteDeTeste ? - 'http://www.testegnre.pe.gov.br/webservice/GnreLoteRecepcao' : - 'http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao'; + 'http://www.testegnre.pe.gov.br/webservice/GnreRecepcaoLote' : + 'http://www.gnre.pe.gov.br/webservice/GnreRecepcaoLote'; return array( 'Content-Type: application/soap+xml;charset=utf-8;action="' . $action . '"', @@ -86,8 +86,8 @@ public function getHeaderSoap() public function soapAction() { return $this->ambienteDeTeste ? - 'http://www.testegnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao' : - 'http://www.gnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao'; + 'https://www.testegnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao' : + 'https://www.gnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao'; } /** diff --git a/testes/Sefaz/ConfigUfTest.php b/testes/Sefaz/ConfigUfTest.php index ada8430..8f09813 100644 --- a/testes/Sefaz/ConfigUfTest.php +++ b/testes/Sefaz/ConfigUfTest.php @@ -36,7 +36,7 @@ public function testDeveRetornarAacaoAserExecutadaNoSoap() { $consulta = new \Sped\Gnre\Sefaz\ConfigUf(); - $this->assertEquals('http://www.gnre.pe.gov.br/gnreWS/services/GnreConfigUF', $consulta->soapAction()); + $this->assertEquals('https://www.gnre.pe.gov.br/gnreWS/services/GnreConfigUF', $consulta->soapAction()); } public function testDeveRetornarXmlCompletoVazioParaRealizarAconsulta() @@ -55,7 +55,7 @@ public function testDeveRetornarAactionAserExecutadaNoWebServiceDeProducao() { $consulta = new \Sped\Gnre\Sefaz\ConfigUf(); - $this->assertEquals($consulta->soapAction(), 'http://www.gnre.pe.gov.br/gnreWS/services/GnreConfigUF'); + $this->assertEquals($consulta->soapAction(), 'https://www.gnre.pe.gov.br/gnreWS/services/GnreConfigUF'); } public function testDeveRetornarAactionAserExecutadaNoWebServiceDeTestes() @@ -63,6 +63,6 @@ public function testDeveRetornarAactionAserExecutadaNoWebServiceDeTestes() $consulta = new \Sped\Gnre\Sefaz\ConfigUf(); $consulta->utilizarAmbienteDeTeste(true); - $this->assertEquals($consulta->soapAction(), 'http://www.testegnre.pe.gov.br/gnreWS/services/GnreConfigUF'); + $this->assertEquals($consulta->soapAction(), 'https://www.testegnre.pe.gov.br/gnreWS/services/GnreConfigUF'); } } diff --git a/testes/Sefaz/ConsultaTest.php b/testes/Sefaz/ConsultaTest.php index 933f504..fb8e8b1 100644 --- a/testes/Sefaz/ConsultaTest.php +++ b/testes/Sefaz/ConsultaTest.php @@ -36,7 +36,7 @@ public function testDeveRetornarAacaoAserExecutadaNoSoap() { $consulta = new \Sped\Gnre\Sefaz\Consulta(); - $this->assertEquals('http://www.gnre.pe.gov.br/gnreWS/services/GnreResultadoLote', $consulta->soapAction()); + $this->assertEquals('https://www.gnre.pe.gov.br/gnreWS/services/GnreResultadoLote', $consulta->soapAction()); } public function testDeveRetornarXmlCompletoVazioParaRealizarAconsulta() @@ -54,7 +54,7 @@ public function testDeveRetornarAactionAserExecutadaNoWebServiceDeProducao() { $consulta = new \Sped\Gnre\Sefaz\Consulta(); - $this->assertEquals($consulta->soapAction(), 'http://www.gnre.pe.gov.br/gnreWS/services/GnreResultadoLote'); + $this->assertEquals($consulta->soapAction(), 'https://www.gnre.pe.gov.br/gnreWS/services/GnreResultadoLote'); } public function testDeveRetornarAactionAserExecutadaNoWebServiceDeTestes() @@ -62,7 +62,7 @@ public function testDeveRetornarAactionAserExecutadaNoWebServiceDeTestes() $consulta = new \Sped\Gnre\Sefaz\Consulta(); $consulta->utilizarAmbienteDeTeste(true); - $action = 'http://www.testegnre.pe.gov.br/gnreWS/services/GnreResultadoLote'; + $action = 'https://www.testegnre.pe.gov.br/gnreWS/services/GnreResultadoLote'; $this->assertEquals($consulta->soapAction(), $action); } } diff --git a/testes/Sefaz/LoteTest.php b/testes/Sefaz/LoteTest.php index 92bb13f..186ba67 100644 --- a/testes/Sefaz/LoteTest.php +++ b/testes/Sefaz/LoteTest.php @@ -17,7 +17,7 @@ public function testDeveRetornarOsCabecalhosParaArequisicaoSoap() $lote = new Lote(); $headersArray = $lote->getHeaderSoap(); - $header = 'Content-Type: application/soap+xml;charset=utf-8;action="http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao"'; + $header = 'Content-Type: application/soap+xml;charset=utf-8;action="http://www.gnre.pe.gov.br/webservice/GnreRecepcaoLote"'; $this->assertEquals($header, $headersArray[0]); $this->assertEquals('SOAPAction: processar', $headersArray[1]); } @@ -26,14 +26,14 @@ public function testDeveUtilizarOAmbienteDeProducaoAoEnviarUmLoteParaOwebService { $lote = new Lote(); - $this->assertEquals('http://www.gnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao', $lote->soapAction()); + $this->assertEquals('https://www.gnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao', $lote->soapAction()); } public function testDeveRetornarAacaoAserExecutadaNoSoap() { $lote = new Lote(); - $this->assertEquals('http://www.gnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao', $lote->soapAction()); + $this->assertEquals('https://www.gnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao', $lote->soapAction()); } public function testDeveRetornarOxmlDoLoteSemCamposExtrasEparaEmitenteEdestinatarioJuridicos() @@ -313,7 +313,7 @@ public function testDeveUtilizarOAmbienteDeTestesAoEnviarUmLoteParaOwebService() { $lote = new Lote(); $lote->utilizarAmbienteDeTeste(true); - $this->assertEquals('http://www.testegnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao', $lote->soapAction()); + $this->assertEquals('https://www.testegnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao', $lote->soapAction()); } public function testDeveRetornarOsCabecalhosParaArequisicaoSoapAoWebServiceDeteste() @@ -323,7 +323,7 @@ public function testDeveRetornarOsCabecalhosParaArequisicaoSoapAoWebServiceDetes $headersArray = $lote->getHeaderSoap(); - $header = 'Content-Type: application/soap+xml;charset=utf-8;action="http://www.testegnre.pe.gov.br/webservice/GnreLoteRecepcao"'; + $header = 'Content-Type: application/soap+xml;charset=utf-8;action="http://www.testegnre.pe.gov.br/webservice/GnreRecepcaoLote"'; $this->assertEquals($header, $headersArray[0]); $this->assertEquals('SOAPAction: processar', $headersArray[1]); } diff --git a/xsd/v1/config_uf_v1.00.xsd b/xsd/v1/config_uf_v1.00.xsd index fc6e78c..159b97e 100755 --- a/xsd/v1/config_uf_v1.00.xsd +++ b/xsd/v1/config_uf_v1.00.xsd @@ -1,7 +1,7 @@ - + xmlns:tns="http://www.gnre.pe.gov.br"> diff --git a/xsd/v1/consulta_config_uf_v1.00.xsd b/xsd/v1/consulta_config_uf_v1.00.xsd index 7e5b6f8..a3e5ec2 100755 --- a/xsd/v1/consulta_config_uf_v1.00.xsd +++ b/xsd/v1/consulta_config_uf_v1.00.xsd @@ -1,7 +1,7 @@ - + xmlns:tns="http://www.gnre.pe.gov.br"> diff --git a/xsd/v1/lote_gnre_consulta_v1.00.xsd b/xsd/v1/lote_gnre_consulta_v1.00.xsd index 3a14891..97c6f4a 100755 --- a/xsd/v1/lote_gnre_consulta_v1.00.xsd +++ b/xsd/v1/lote_gnre_consulta_v1.00.xsd @@ -1,5 +1,5 @@ - - - - - - - - - - - - - - - - - - Código da UF - Favorecida. - (Utilizar a Tabela - do IBGE) - - - - - - - Código da Receita. - - - - - - - - - - - - - Código do - Detalhamento da - Receita. - - - - - - - - - - - - - Código do Produto. - - - - - - - - - - - - - Código do Tipo de - Identificação do - Emitente: - - - - - - - Número do Documento - de Identificação do - Contribuinte - Emitente. - - - - - - - - Número - do CNPJ - do - Contribuinte - - - - - - - Número - do CPF - do - Contribuinte - - - - - - - - - - Código do Tipo de - Documento de Origem. - - - - - - - - - - - - - Número do Documento - de Origem. - - - - - - - - - - - - - Valor Original da - Guia. - - - - - - - Valor total da guia - (valor original + - encargos). - - - - - - - Data de vencimento - da guia. - - - - - - - Número do convênio. - - - - - - - - - - - - Nome da firma ou a - Razão Social do - Contribuinte. - - - - - - - - - - - - Inscrição Estadual - do Contribuinte na - UF favorecida. - - - - - - - Endereço do - Contribuinte. - - - - - - - - - - - - Código do Município - de localização do - Contribuinte.(Utilizar - a tabela do IBGE) - - - - - - - Código da UF do - Contribuinte. - - - - - - - CEP do Contribuinte. - - - - - - - - - - - - - Telefone do - contribuinte. - - - - - - - - - - - - - Tipo de - Identificação do - Destinatário: - - - - - - - Número do Documento - de Identificação do - Contribuinte - Destinatário. - - - - - - - - Número - do CNPJ - do - Contribuinte - Destinatário - - - - - - - Número - do CPF - do - Contribuinte - Destinatário - - - - - - - - - - Inscrição Estadual - do Contribuinte na - UF favorecida. - - - - - - - Nome da firma ou a - Razão Social do - Contribuinte. - - - - - - - - - - - - Código do Município - de Destino.(Utilizar - a tabela do IBGE) - - - - - - - Data prevista de - pagamento informada - pelo contribuinte. - - - - - - - - Informações de - período de - apuração - - - - - - - Indicador - do - Periodo: - 0 – - mensal; - 1 – 1a. - quinzena; - 2 – 2a. - quinzena; - 3 – 1o. - decêndio; - 4 – 2o. - decêndio; - 5 – 3o. - decêndio; - - - - - - - - - - - - - - - - - - Mês de - referência - da - Apuração - - - - - - - Ano de - referência - da - Apuração - - - - - - - Parcela - de - referência - da - Apuração - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + Código da UF + Favorecida. + (Utilizar a Tabela + do IBGE) + + + + + + + Código da Receita. + + + + + + + + + + + + + Código do + Detalhamento da + Receita. + + + + + + + + + + + + + Código do Produto. + + + + + + + + + + + + + Código do Tipo de + Identificação do + Emitente: + + + + + + + Número do Documento + de Identificação do + Contribuinte + Emitente. + + + + + + + + Número + do CNPJ + do + Contribuinte + + + + + + + Número + do CPF + do + Contribuinte + + + + + + + + + + Código do Tipo de + Documento de Origem. + + + + + + + + + + + + + Número do Documento + de Origem. + + + + + + + + + + + + + Valor Original da + Guia. + + + + + + + Valor total da guia + (valor original + + encargos). + + + + + + + Data de vencimento + da guia. + + + + + + + Número do convênio. + + + + + + + + + + + + Nome da firma ou a + Razão Social do + Contribuinte. + + + + + + + + + + + + Inscrição Estadual + do Contribuinte na + UF favorecida. + + + + + + + Endereço do + Contribuinte. + + + + + + + + + + + + Código do Município + de localização do + Contribuinte.(Utilizar + a tabela do IBGE) + + + + + + + Código da UF do + Contribuinte. + + + + + + + CEP do Contribuinte. + + + + + + + + + + + + + Telefone do + contribuinte. + + + + + + + + + + + + + Tipo de + Identificação do + Destinatário: + + + + + + + Número do Documento + de Identificação do + Contribuinte + Destinatário. + + + + + + + + Número + do CNPJ + do + Contribuinte + Destinatário + + + + + + + Número + do CPF + do + Contribuinte + Destinatário + + + + + + + + + + Inscrição Estadual + do Contribuinte na + UF favorecida. + + + + + + + Nome da firma ou a + Razão Social do + Contribuinte. + + + + + + + + + + + + Código do Município + de Destino.(Utilizar + a tabela do IBGE) + + + + + + + Data prevista de + pagamento informada + pelo contribuinte. + + + + + + + + Informações de + período de + apuração + + + + + + + Indicador + do + Periodo: + 0 – + mensal; + 1 – 1a. + quinzena; + 2 – 2a. + quinzena; + 3 – 1o. + decêndio; + 4 – 2o. + decêndio; + 5 – 3o. + decêndio; + + + + + + + + + + + + + + + + + + Mês de + referência + da + Apuração + + + + + + + Ano de + referência + da + Apuração + + + + + + + Parcela + de + referência + da + Apuração + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + \ No newline at end of file diff --git a/xsd/v1/tiposBasicoGNRE_v1.00.xsd b/xsd/v1/tiposBasicoGNRE_v1.00.xsd index b7bce9a..d1f3847 100755 --- a/xsd/v1/tiposBasicoGNRE_v1.00.xsd +++ b/xsd/v1/tiposBasicoGNRE_v1.00.xsd @@ -2,7 +2,7 @@ diff --git a/xsd/v2/dados_gnre_v2.00.xsd b/xsd/v2/dados_gnre_v2.00.xsd index 65aff65..5a8561d 100644 --- a/xsd/v2/dados_gnre_v2.00.xsd +++ b/xsd/v2/dados_gnre_v2.00.xsd @@ -2,7 +2,7 @@ diff --git a/xsd/v2/lote_gnre_result_v2.00.xsd b/xsd/v2/lote_gnre_result_v2.00.xsd index c46b3db..faa115f 100644 --- a/xsd/v2/lote_gnre_result_v2.00.xsd +++ b/xsd/v2/lote_gnre_result_v2.00.xsd @@ -1,5 +1,5 @@ - - + targetNamespace="http://www.gnre.pe.gov.br" + xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:Q1="http://www.gnre.pe.gov.br"> @@ -23,7 +23,7 @@ maxOccurs="1"> - +