Skip to content

Commit

Permalink
Teste
Browse files Browse the repository at this point in the history
  • Loading branch information
luizkim committed Nov 22, 2023
1 parent 59bfd10 commit 267cd8e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Sped/Gnre/Helper/GnreHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static function getGuiaGnre($xmlNf): Guia
$guia->c03_idContribuinteEmitente = $xml->NrDocumentoEmpresa;
$guia->c18_enderecoEmitente = $xml->EnderecoEmpresa;

$guia->c19_municipioEmitente = $xml->CdMunicipioEmpresa;
$guia->c19_municipioEmitente = 15004;//$xml->CdMunicipioEmpresa;

$guia->c20_ufEnderecoEmitente = $xml->UfEmpresa;
$guia->c17_inscricaoEstadualEmitente = $xml->NrIEEmpresa;
Expand All @@ -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 = $xml->CdMunicipioCliente;
$guia->c38_municipioDestinatario = 06200;//$xml->CdMunicipioCliente;

return $guia;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Sped/Gnre/Sefaz/ConfigUf.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function toXml()
$gnre->preserveWhiteSpace = false;

$consulta = $gnre->createElement('TConsultaConfigUf');
$consulta->setAttribute('xmlns', 'https://www.gnre.pe.gov.br');
$consulta->setAttribute('xmlns', 'http://www.gnre.pe.gov.br');

$ambiente = $gnre->createElement('ambiente', $this->getEnvironment());
$estado = $gnre->createElement('uf', $this->getEstado());
Expand Down
2 changes: 1 addition & 1 deletion lib/Sped/Gnre/Sefaz/Consulta.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function toXml()
$gnre->preserveWhiteSpace = false;

$consulta = $gnre->createElement('TConsLote_GNRE');
$consulta->setAttribute('xmlns', 'https://www.gnre.pe.gov.br');
$consulta->setAttribute('xmlns', 'http://www.gnre.pe.gov.br');

$ambiente = $gnre->createElement('ambiente', $this->getEnvironment());
$numeroRecibo = $gnre->createElement('numeroRecibo', $this->getRecibo());
Expand Down

0 comments on commit 267cd8e

Please sign in to comment.