Skip to content

Commit

Permalink
Atualizado QR Code para versão 2.0
Browse files Browse the repository at this point in the history
Atualizado tabela IBPT para versão 18.2.B
  • Loading branch information
mazinsw committed Sep 3, 2018
1 parent dc09fe0 commit b3fb7fc
Show file tree
Hide file tree
Showing 37 changed files with 91 additions and 88 deletions.
55 changes: 26 additions & 29 deletions api/NFe/Core/NFCe.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class NFCe extends Nota
/**
* Versão do QRCode
*/
const QRCODE_VERSAO = '100';
const QRCODE_VERSAO = '2';

/**
* Texto com o QR-Code impresso no DANFE NFC-e
Expand Down Expand Up @@ -168,37 +168,34 @@ public function fromArray($nfce = [])
return $this;
}

private function gerarQRCodeInfo(&$dom)
private function makeUrlQuery($dom)
{
$config = SEFAZ::getInstance()->getConfiguracao();
$totais = $this->getTotais();
// if ($this->getEmissao() == self::EMISSAO_NORMAL) {
if ($this->getEmissao() == self::EMISSAO_NORMAL) {
$params = [
$this->getID(), // chave de acesso
self::QRCODE_VERSAO, // versão do QR Code
$this->getAmbiente(true), // Identificação do ambiente
intval($config->getToken()), // Identificador do CSC (Sem zeros não significativos)
];
} else { // contingência
$dig_val = Util::loadNode($dom, 'DigestValue', 'Tag "DigestValue" não encontrada na NFCe');
// } else {
// $dig_val = base64_encode(sha1($dom->saveXML(), true));
// }
$params = [
'chNFe' => $this->getID(),
'nVersao' => self::QRCODE_VERSAO,
'tpAmb' => $this->getAmbiente(true),
'cDest' => null,
'dhEmi' => Util::toHex($this->getDataEmissao(true)),
'vNF' => Util::toCurrency($totais['nota']),
'vICMS' => Util::toCurrency($totais[Imposto::GRUPO_ICMS]),
'digVal' => Util::toHex($dig_val),
'cIdToken' => Util::padDigit($config->getToken(), 6),
'cHashQRCode' => null
];
if (!is_null($this->getDestinatario())) {
$params['cDest'] = $this->getDestinatario()->getID(true);
} else {
unset($params['cDest']);
$params = [
$this->getID(), // chave de acesso
self::QRCODE_VERSAO, // versão do QR Code
$this->getAmbiente(true), // Identificação do ambiente
date('d', $this->getDataEmissao()), // dia da data de emissão
Util::toCurrency($totais['nota']), // valor total da NFC-e
Util::toHex($dig_val), // DigestValue da NFC-e
intval($config->getToken()), // Identificador do CSC (Sem zeros não significativos)
];
}
$_params = $params;
unset($_params['cHashQRCode']);
$query = http_build_query($_params);
$params['cHashQRCode'] = sha1($query.$config->getCSC());
return $params;
$query = implode('|', $params);
$hash = sha1($query.$config->getCSC());
$params = [$query, $hash];
$query = implode('|', $params);
return ['p' => $query];
}

private function buildURLs($dom)
Expand All @@ -211,8 +208,8 @@ private function buildURLs($dom)
if (is_array($url)) {
$url = $url['url'];
}
$params = $this->gerarQRCodeInfo($dom);
$query = http_build_query($params);
$params = $this->makeUrlQuery($dom);
$query = urldecode(http_build_query($params));
$url .= (strpos($url, '?') === false?'?':'&').$query;
$this->setQRCodeURL($url);
if (!isset($info['consulta'])) {
Expand Down
3 changes: 3 additions & 0 deletions api/NFe/Core/SEFAZ.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public function __construct($sefaz = [])
$this->fromArray($sefaz);
}

/**
* @return \NFe\Core\SEFAZ default instance
*/
public static function getInstance($new = false)
{
if (is_null(self::$instance) || $new) {
Expand Down
2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/AC.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/AL.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/AM.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/AP.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/BA.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/CE.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/DF.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/ES.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/GO.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/MA.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/MG.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/MS.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/MT.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/PA.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/PB.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/PE.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/PI.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/PR.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/RJ.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/RN.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/RO.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/RR.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/RS.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/SC.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/SE.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/SP.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion api/NFe/Database/data/IBPT/TO.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions tests/NFe/Core/SEFAZTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ protected function tearDown()
Log::getInstance()->setHandler(null);
}

/**
* @return \NFe\Core\SEFAZ default instance
*/
public static function createSEFAZ()
{
$emitente = \NFe\Entity\EmitenteTest::createEmitente();
Expand Down
12 changes: 6 additions & 6 deletions tests/resources/xml/nota/testNFCeAssinadaXML.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
</COFINSAliq>
</COFINS>
</imposto>
<infAdProd>Trib. aprox.: R$ 0,75 Federal e R$ 0,90 Estadual. Fonte: IBPT/empresometro.com.br F3W1D7</infAdProd>
<infAdProd>Trib. aprox.: R$ 0,75 Federal e R$ 0,90 Estadual. Fonte: IBPT/empresometro.com.br A3S28F</infAdProd>
</det>
<det nItem="2">
<prod>
Expand Down Expand Up @@ -157,7 +157,7 @@
</COFINSAliq>
</COFINS>
</imposto>
<infAdProd>Trib. aprox.: R$ 1,02 Federal e R$ 1,22 Estadual. Fonte: IBPT/empresometro.com.br F3W1D7</infAdProd>
<infAdProd>Trib. aprox.: R$ 1,02 Federal e R$ 1,22 Estadual. Fonte: IBPT/empresometro.com.br A3S28F</infAdProd>
</det>
<total>
<ICMSTot>
Expand Down Expand Up @@ -201,7 +201,7 @@
</detPag>
</pag>
<infAdic>
<infCpl>Trib. aprox.: R$ 1,77 Federal e R$ 2,12 Estadual. Fonte: IBPT/empresometro.com.br F3W1D7</infCpl>
<infCpl>Trib. aprox.: R$ 1,77 Federal e R$ 2,12 Estadual. Fonte: IBPT/empresometro.com.br A3S28F</infCpl>
<obsCont xCampo="Vendedor">
<xTexto>Fulano de Tal</xTexto>
</obsCont>
Expand All @@ -214,7 +214,7 @@
</infAdic>
</infNFe>
<infNFeSupl>
<qrCode><![CDATA[http://www.fazenda.pr.gov.br/nfce/qrcode/?chNFe=41160908380787000176650010000000811778821925&nVersao=100&tpAmb=2&cDest=12345678912&dhEmi=323031362d30392d31375430303a33363a30332b30303a3030&vNF=11.79&vICMS=0.00&digVal=436b7a536f6355622f434e7247346c4d324d665335736a585a58303d&cIdToken=000000&cHashQRCode=13d48963e9b41a076b2171004adf6715d876334c]]></qrCode>
<qrCode><![CDATA[http://www.fazenda.pr.gov.br/nfce/qrcode/?p=41160908380787000176650010000000811778821925|2|2|0|cba885c8d7cb9ad92421d05b41e1d74231285cd1]]></qrCode>
<urlChave><![CDATA[http://www.fazenda.pr.gov.br]]></urlChave>
</infNFeSupl>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
Expand All @@ -227,10 +227,10 @@
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue>CkzSocUb/CNrG4lM2MfS5sjXZX0=</DigestValue>
<DigestValue>oHXBb9YWkIGDaByiqEc/SimT1+w=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>NRz2ulo49qlkQEZys9P7Toaeh0v8lbz6UL2htNK+VzfyN5eIszE1otAzFqueK/kxiozg+LtSPh52VThL2z66/5RLs+E0TesWPlD7COrsI0vULOEjWiCZYNFlM6+P+zChdEmCKE+p4RXc72kP/e/Xck1cst+NG8bZvobTF/THawY=</SignatureValue>
<SignatureValue>W9SqbQtPt7SejC1waAfSZ/jd5pr2Xa9ghoKhlGDOLX8ZXpf7AKw64dstagkZXBPHSWBJGXZkTnb5+Fjvfu3BnLBnS5wZySiTpUlFCHlNENMCyYKS1NLDQylQbDwrmVYNo6xSUceOjfEsxu0ot5q+yfZrp/X0EO+SfBYgwsIzKOQ=</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>MIIEqzCCA5OgAwIBAgIDMTg4MA0GCSqGSIb3DQEBBQUAMIGSMQswCQYDVQQGEwJCUjELMAkGA1UECBMCUlMxFTATBgNVBAcTDFBvcnRvIEFsZWdyZTEdMBsGA1UEChMUVGVzdGUgUHJvamV0byBORmUgUlMxHTAb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EzOC5jcmwwDQYJKoZIhvcNAQEFBQADggEBAJFytXuiS02eJO0iMQr/Hi+Ox7/vYiPewiDL7s5EwO8A9jKx9G2Baz0KEjcdaeZk9a2NzDEgX9zboPxhw0RkWahVCP2xvRFWswDIa2WRUT/LHTEuTeKCJ0iF/um/kYM8PmWxPsDWzvsCCRp146lc0lz9LGm5ruPVYPZ/7DAoimUk3bdCMW/rzkVYg7iitxHrhklxH7YWQHUwbcqPt7Jv0RJxclc1MhQlV2eM2MO1iIlk8Eti86dRrJVoicR1bwc6/YDqDp4PFONTi1ddewRu6elGS74AzCcNYRSVTINYiZLpBZO0uivrnTEnsFguVnNtWb9MAHGt3tkR0gAVs6S0fm8=</X509Certificate>
Expand Down
12 changes: 6 additions & 6 deletions tests/resources/xml/nota/testNFCeAutorizadoXML.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
</COFINSAliq>
</COFINS>
</imposto>
<infAdProd>Trib. aprox.: R$ 0,75 Federal e R$ 0,90 Estadual. Fonte: IBPT/empresometro.com.br F3W1D7</infAdProd>
<infAdProd>Trib. aprox.: R$ 0,75 Federal e R$ 0,90 Estadual. Fonte: IBPT/empresometro.com.br A3S28F</infAdProd>
</det>
<det nItem="2">
<prod>
Expand Down Expand Up @@ -158,7 +158,7 @@
</COFINSAliq>
</COFINS>
</imposto>
<infAdProd>Trib. aprox.: R$ 1,02 Federal e R$ 1,22 Estadual. Fonte: IBPT/empresometro.com.br F3W1D7</infAdProd>
<infAdProd>Trib. aprox.: R$ 1,02 Federal e R$ 1,22 Estadual. Fonte: IBPT/empresometro.com.br A3S28F</infAdProd>
</det>
<total>
<ICMSTot>
Expand Down Expand Up @@ -202,7 +202,7 @@
</detPag>
</pag>
<infAdic>
<infCpl>Trib. aprox.: R$ 1,77 Federal e R$ 2,12 Estadual. Fonte: IBPT/empresometro.com.br F3W1D7</infCpl>
<infCpl>Trib. aprox.: R$ 1,77 Federal e R$ 2,12 Estadual. Fonte: IBPT/empresometro.com.br A3S28F</infCpl>
<obsCont xCampo="Vendedor">
<xTexto>Fulano de Tal</xTexto>
</obsCont>
Expand All @@ -215,7 +215,7 @@
</infAdic>
</infNFe>
<infNFeSupl>
<qrCode><![CDATA[http://www.fazenda.pr.gov.br/nfce/qrcode/?chNFe=41160908380787000176650010000000811778821925&nVersao=100&tpAmb=2&cDest=12345678912&dhEmi=323031362d30392d31375430303a33363a30332b30303a3030&vNF=11.79&vICMS=0.00&digVal=436b7a536f6355622f434e7247346c4d324d665335736a585a58303d&cIdToken=000000&cHashQRCode=13d48963e9b41a076b2171004adf6715d876334c]]></qrCode>
<qrCode><![CDATA[http://www.fazenda.pr.gov.br/nfce/qrcode/?p=41160908380787000176650010000000811778821925|2|2|0|cba885c8d7cb9ad92421d05b41e1d74231285cd1]]></qrCode>
<urlChave><![CDATA[http://www.fazenda.pr.gov.br]]></urlChave>
</infNFeSupl>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
Expand All @@ -228,10 +228,10 @@
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue>CkzSocUb/CNrG4lM2MfS5sjXZX0=</DigestValue>
<DigestValue>oHXBb9YWkIGDaByiqEc/SimT1+w=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>NRz2ulo49qlkQEZys9P7Toaeh0v8lbz6UL2htNK+VzfyN5eIszE1otAzFqueK/kxiozg+LtSPh52VThL2z66/5RLs+E0TesWPlD7COrsI0vULOEjWiCZYNFlM6+P+zChdEmCKE+p4RXc72kP/e/Xck1cst+NG8bZvobTF/THawY=</SignatureValue>
<SignatureValue>W9SqbQtPt7SejC1waAfSZ/jd5pr2Xa9ghoKhlGDOLX8ZXpf7AKw64dstagkZXBPHSWBJGXZkTnb5+Fjvfu3BnLBnS5wZySiTpUlFCHlNENMCyYKS1NLDQylQbDwrmVYNo6xSUceOjfEsxu0ot5q+yf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gTAEDB6AOBAwwMDAwMDAwMDAwMDCBGmRmdC1uZmVAcHJvY2VyZ3MucnMuZ292LmJyMCAGA1UdJQEB/wQWMBQGCCsGAQUFBwMCBggrBgEFBQcDBDBTBgNVHR8BAQAESTBHMEWgQ6BBhj9odHRwOi8vbmZlY2VydGlmaWNhZG8uc2VmYXoucnMuZ292LmJyL0xDUi9BQ0ludGVybWVkaWFyaWEzOC5jcmwwDQYJKoZIhvcNAQEFBQADggEBAJFytXuiS02eJO0iMQr/Hi+Ox7/vYiPewiDL7s5EwO8A9jKx9G2Baz0KEjcdaeZk9a2NzDEgX9zboPxhw0RkWahVCP2xvRFWswDIa2WRUT/LHTEuTeKCJ0iF/um/kYM8PmWxPsDWzvsCCRp146lc0lz9LGm5ruPVYPZ/7DAoimUk3bdCMW/rzkVYg7iitxHrhklxH7YWQHUwbcqPt7Jv0RJxclc1MhQlV2eM2MO1iIlk8Eti86dRrJVoicR1bwc6/YDqDp4PFONTi1ddewRu6elGS74AzCcNYRSVTINYiZLpBZO0uivrnTEnsFguVnNtWb9MAHGt3tkR0gAVs6S0fm8=</X509Certificate>
Expand Down
6 changes: 3 additions & 3 deletions tests/resources/xml/nota/testNFCeXML.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
</COFINSAliq>
</COFINS>
</imposto>
<infAdProd>Trib. aprox.: R$ 0,75 Federal e R$ 0,90 Estadual. Fonte: IBPT/empresometro.com.br F3W1D7</infAdProd>
<infAdProd>Trib. aprox.: R$ 0,75 Federal e R$ 0,90 Estadual. Fonte: IBPT/empresometro.com.br A3S28F</infAdProd>
</det>
<det nItem="2">
<prod>
Expand Down Expand Up @@ -157,7 +157,7 @@
</COFINSAliq>
</COFINS>
</imposto>
<infAdProd>Trib. aprox.: R$ 1,02 Federal e R$ 1,22 Estadual. Fonte: IBPT/empresometro.com.br F3W1D7</infAdProd>
<infAdProd>Trib. aprox.: R$ 1,02 Federal e R$ 1,22 Estadual. Fonte: IBPT/empresometro.com.br A3S28F</infAdProd>
</det>
<total>
<ICMSTot>
Expand Down Expand Up @@ -201,7 +201,7 @@
</detPag>
</pag>
<infAdic>
<infCpl>Trib. aprox.: R$ 1,77 Federal e R$ 2,12 Estadual. Fonte: IBPT/empresometro.com.br F3W1D7</infCpl>
<infCpl>Trib. aprox.: R$ 1,77 Federal e R$ 2,12 Estadual. Fonte: IBPT/empresometro.com.br A3S28F</infCpl>
<obsCont xCampo="Vendedor">
<xTexto>Fulano de Tal</xTexto>
</obsCont>
Expand Down
6 changes: 3 additions & 3 deletions tests/resources/xml/nota/testNFeXML.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
</COFINSAliq>
</COFINS>
</imposto>
<infAdProd>Trib. aprox.: R$ 0,75 Federal e R$ 0,90 Estadual. Fonte: IBPT/empresometro.com.br F3W1D7</infAdProd>
<infAdProd>Trib. aprox.: R$ 0,75 Federal e R$ 0,90 Estadual. Fonte: IBPT/empresometro.com.br A3S28F</infAdProd>
</det>
<det nItem="2">
<prod>
Expand Down Expand Up @@ -157,7 +157,7 @@
</COFINSAliq>
</COFINS>
</imposto>
<infAdProd>Trib. aprox.: R$ 1,02 Federal e R$ 1,22 Estadual. Fonte: IBPT/empresometro.com.br F3W1D7</infAdProd>
<infAdProd>Trib. aprox.: R$ 1,02 Federal e R$ 1,22 Estadual. Fonte: IBPT/empresometro.com.br A3S28F</infAdProd>
</det>
<total>
<ICMSTot>
Expand Down Expand Up @@ -188,7 +188,7 @@
</transp>
<pag/>
<infAdic>
<infCpl>Trib. aprox.: R$ 1,77 Federal e R$ 2,12 Estadual. Fonte: IBPT/empresometro.com.br F3W1D7</infCpl>
<infCpl>Trib. aprox.: R$ 1,77 Federal e R$ 2,12 Estadual. Fonte: IBPT/empresometro.com.br A3S28F</infCpl>
<obsCont xCampo="Vendedor">
<xTexto>Fulano de Tal</xTexto>
</obsCont>
Expand Down
12 changes: 6 additions & 6 deletions tests/resources/xml/nota/testTrocoNFCeValidadaXML.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
</COFINSAliq>
</COFINS>
</imposto>
<infAdProd>Trib. aprox.: R$ 0,75 Federal e R$ 0,90 Estadual. Fonte: IBPT/empresometro.com.br F3W1D7</infAdProd>
<infAdProd>Trib. aprox.: R$ 0,75 Federal e R$ 0,90 Estadual. Fonte: IBPT/empresometro.com.br A3S28F</infAdProd>
</det>
<det nItem="2">
<prod>
Expand Down Expand Up @@ -157,7 +157,7 @@
</COFINSAliq>
</COFINS>
</imposto>
<infAdProd>Trib. aprox.: R$ 1,02 Federal e R$ 1,22 Estadual. Fonte: IBPT/empresometro.com.br F3W1D7</infAdProd>
<infAdProd>Trib. aprox.: R$ 1,02 Federal e R$ 1,22 Estadual. Fonte: IBPT/empresometro.com.br A3S28F</infAdProd>
</det>
<total>
<ICMSTot>
Expand Down Expand Up @@ -206,7 +206,7 @@
<vTroco>5.00</vTroco>
</pag>
<infAdic>
<infCpl>Trib. aprox.: R$ 1,77 Federal e R$ 2,12 Estadual. Fonte: IBPT/empresometro.com.br F3W1D7</infCpl>
<infCpl>Trib. aprox.: R$ 1,77 Federal e R$ 2,12 Estadual. Fonte: IBPT/empresometro.com.br A3S28F</infCpl>
<obsCont xCampo="Vendedor">
<xTexto>Fulano de Tal</xTexto>
</obsCont>
Expand All @@ -219,7 +219,7 @@
</infAdic>
</infNFe>
<infNFeSupl>
<qrCode><![CDATA[http://www.fazenda.pr.gov.br/nfce/qrcode/?chNFe=41160908380787000176650010000000811778821925&nVersao=100&tpAmb=2&cDest=12345678912&dhEmi=323031362d30392d31375430303a33363a30332b30303a3030&vNF=11.79&vICMS=0.00&digVal=4b556c6e3048397844376c7551497a68687a6f6d38553137656c4d3d&cIdToken=000000&cHashQRCode=caf87f4b0de8d23f1cfb931a35df75cd0316fcf2]]></qrCode>
<qrCode><![CDATA[http://www.fazenda.pr.gov.br/nfce/qrcode/?p=41160908380787000176650010000000811778821925|2|2|0|cba885c8d7cb9ad92421d05b41e1d74231285cd1]]></qrCode>
<urlChave><![CDATA[http://www.fazenda.pr.gov.br]]></urlChave>
</infNFeSupl>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
Expand All @@ -232,10 +232,10 @@
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue>KUln0H9xD7luQIzhhzom8U17elM=</DigestValue>
<DigestValue>CRLSSrWS3xmPTfwMIcc1fEgN3g0=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>I76Gn6blQgyaObuNiJDNrmkGA4qRcU1t7TY1RcpdRp2T1WYyOz9ZN06d8RnnbdrggSav8sn0ffe+XCSSjubjahO3bnpw2GSe11GV1Zi1dNsOR6iMv3MsMgHdUAqwOGWvK/HoLcNbncN3VN75w4CAOci/I73Dmzs8SN6fiNK5C8Y=</SignatureValue>
<SignatureValue>VIVIi49Q159nqW9KsRQ/+Pue2ceJZj8M5L0w7tV+Z+dnE1g4OBUORQ0MXdA2g70DnRXypzTYKr7ihQy447tfkua99L/yiZQ4TEXbd+DXoLk15t0+i9WjiX7wdSXhMgw8L73uicE/98R8tQHNv6XXPnDh3rF6jMwdL86G0tmstm0=</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>MIIEqzCCA5OgAwIBAgIDMTg4MA0GCSqGSIb3DQEBBQUAMIGSMQswCQYDVQQGEwJCUjELMAkGA1UECBMCUlMxFTATBgNVBAcTDFBvcnRvIEFsZWdyZTEdMBsGA1UEChMUVGVzdGUgUHJvamV0byBORmUgUlMxHTAbBgNVBAsTFFRlc3RlIFByb2pldG8gTkZlIFJTMSEwHwYDVQQDExhORmUgLSBBQyBJbnRlcm1lZGlhcmlhIDEwHhcNMDkwNTIyMTcwNzAzWhcNMTAxMDAyMTcwNzAzWjCBnjELMAkGA1UECBMCUlMxHTAbBgNVBAsTFFRlc3RlIFByb2pldG8gTkZlIFJTMR0wGwYDV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/7DAoimUk3bdCMW/rzkVYg7iitxHrhklxH7YWQHUwbcqPt7Jv0RJxclc1MhQlV2eM2MO1iIlk8Eti86dRrJVoicR1bwc6/YDqDp4PFONTi1ddewRu6elGS74AzCcNYRSVTINYiZLpBZO0uivrnTEnsFguVnNtWb9MAHGt3tkR0gAVs6S0fm8=</X509Certificate>
Expand Down
2 changes: 1 addition & 1 deletion tests/resources/xml/produto/testProdutoXML.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
</ICMSSN500>
</ICMS>
</imposto>
<infAdProd>Trib. aprox.: R$ 0,65 Federal e R$ 0,77 Estadual. Fonte: IBPT/empresometro.com.br F3W1D7</infAdProd>
<infAdProd>Trib. aprox.: R$ 0,65 Federal e R$ 0,77 Estadual. Fonte: IBPT/empresometro.com.br A3S28F</infAdProd>
</det>
Loading

0 comments on commit b3fb7fc

Please sign in to comment.