-
-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] l10n_br_nfe: Various enhancements and fixes
- Added support for contingency mode (SVC) - Added support for synchronous transmission - Added NFe status check functionality - Improved transmission process to ensure information received from SEFAZ is not lost on failure - Various performance optimizations and bug fixes nfe
- Loading branch information
1 parent
2d1502a
commit 57d9d97
Showing
13 changed files
with
565 additions
and
94 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<soap:Envelope | ||
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
> | ||
<soap:Body> | ||
<nfeResultMsg | ||
xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4" | ||
> | ||
<retConsReciNFe versao="4.00" xmlns="http://www.portalfiscal.inf.br/nfe"> | ||
<tpAmb>2</tpAmb> | ||
<verAplic>sefaz_mocked</verAplic> | ||
<nRec>423002202113232</nRec> | ||
<cStat>104</cStat> | ||
<xMotivo>Lote processado</xMotivo> | ||
<cUF>42</cUF> | ||
<dhRecbto>2023-06-11T01:18:19-03:00</dhRecbto> | ||
<protNFe versao="4.00"> | ||
<infProt> | ||
<tpAmb>2</tpAmb> | ||
<verAplic>SVRSnfce202307311112</verAplic> | ||
<chNFe>33230807984267003800650040000000321935136447</chNFe> | ||
<dhRecbto>2023-08-07T11:09:08-03:00</dhRecbto> | ||
<nProt>333230000396082</nProt> | ||
<digVal>zwJzbq4FXks09tlHU1GEWRI7t/A=</digVal> | ||
<cStat>303</cStat> | ||
<xMotivo | ||
>Uso Denegado: Destinatário não habilitado a operar na UF</xMotivo> | ||
</infProt> | ||
</protNFe> | ||
</retConsReciNFe> | ||
</nfeResultMsg> | ||
</soap:Body> | ||
</soap:Envelope> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<soap:Envelope | ||
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
> | ||
<soap:Body> | ||
<nfeResultMsg | ||
xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4" | ||
> | ||
<retConsSitNFe versao="4.00" xmlns="http://www.portalfiscal.inf.br/nfe"> | ||
<tpAmb>2</tpAmb> | ||
<verAplic>sefaz_mocked</verAplic> | ||
<cStat>100</cStat> | ||
<xMotivo>Autorizado o uso da NF-e</xMotivo> | ||
<cUF>26</cUF> | ||
<dhRecbto>2020-02-03T10:31:52-03:00</dhRecbto> | ||
<chNFe>26200124494200000106550010000010111352744151</chNFe> | ||
<protNFe versao="4.00"> | ||
<infProt Id="ID26200124494200000106550010000010111352744151"> | ||
<tpAmb>2</tpAmb> | ||
<verAplic>sefaz_mocked.00.07.211</verAplic> | ||
<chNFe>26200124494200000106550010000010111352744151</chNFe> | ||
<dhRecbto>2020-01-13T14:20:52-03:00</dhRecbto> | ||
<nProt>126200000020426</nProt> | ||
<digVal>YRn2TFuteCw8/KW0mwxQBQGurlI=</digVal> | ||
<cStat>100</cStat> | ||
<xMotivo>Autorizado o uso da NF-e</xMotivo> | ||
</infProt> | ||
</protNFe> | ||
</retConsSitNFe> | ||
</nfeResultMsg> | ||
</soap:Body> | ||
</soap:Envelope> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<soap:Envelope | ||
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
> | ||
<soap:Body> | ||
<nfeResultMsg | ||
xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4" | ||
> | ||
<retConsSitNFe versao="4.00" xmlns="http://www.portalfiscal.inf.br/nfe"> | ||
<tpAmb>2</tpAmb> | ||
<verAplic>sefaz_mocked</verAplic> | ||
<cStat>101</cStat> | ||
<xMotivo>Cancelamento de NF-e homologado</xMotivo> | ||
<cUF>26</cUF> | ||
<dhRecbto>2020-02-03T10:31:52-03:00</dhRecbto> | ||
<chNFe>26200124494200000106550010000010111352744151</chNFe> | ||
<retCancNFe versao="4.00"> | ||
<infCanc Id="ID43060992665611012850550070000081711388781007"> | ||
<tpAmb>2</tpAmb> | ||
<verAplic>2.2.21</verAplic> | ||
<cStat>103</cStat> | ||
<xMotivo>Lote recebido com sucesso</xMotivo> | ||
<cUF>12</cUF> | ||
<chNFe>43060992665611012850550070000081711388781007</chNFe> | ||
<dhRecbto>1969-12-31T21:00:01.000-03:00</dhRecbto> | ||
<nProt>143060000295038</nProt> | ||
</infCanc> | ||
</retCancNFe> | ||
</retConsSitNFe> | ||
</nfeResultMsg> | ||
</soap:Body> | ||
</soap:Envelope> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<soap:Envelope | ||
xmlns:soap="http://www.w3.org/2003/05/soap-envelope" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
> | ||
<soap:Body> | ||
<nfeResultMsg | ||
xmlns="http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4" | ||
> | ||
<retConsSitNFe xmlns="http://www.portalfiscal.inf.br/nfe" versao="4.00"> | ||
<tpAmb>1</tpAmb> | ||
<verAplic>sefaz_mocked</verAplic> | ||
<cStat>110</cStat> | ||
<xMotivo>Uso Denegado</xMotivo> | ||
<cUF>26</cUF> | ||
<dhRecbto>2020-02-13T14:20:52-03:00</dhRecbto> | ||
<chNFe>26200124494200000106550010000010111352744151</chNFe> | ||
<protNFe versao="4.00"> | ||
<infProt> | ||
<tpAmb>1</tpAmb> | ||
<verAplic>sefaz_mocked</verAplic> | ||
<chNFe>26200124494200000106550010000010111352744151</chNFe> | ||
<dhRecbto>2020-01-13T14:20:52-03:00</dhRecbto> | ||
<nProt>135180772366783</nProt> | ||
<digVal>4A20WByjTePGOz+LoGy1uVk2gaY=</digVal> | ||
<cStat>302</cStat> | ||
<xMotivo | ||
>Uso Denegado: Irregularidade fiscal do destinatário</xMotivo> | ||
</infProt> | ||
</protNFe> | ||
</retConsSitNFe> | ||
</nfeResultMsg> | ||
</soap:Body> | ||
</soap:Envelope> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters