Skip to content

Instantly share code, notes, and snippets.

@danielgoncalves
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielgoncalves/0c7f0366cd15f057a392 to your computer and use it in GitHub Desktop.
Save danielgoncalves/0c7f0366cd15f057a392 to your computer and use it in GitHub Desktop.
XML de referência usado na função TesteFimAFim
<?xml version="1.0"?>
<CFe>
<infCFe versaoDadosEnt="0.06">
<ide>
<CNPJ>08427847000169</CNPJ>
<signAC>SGR-SAT SISTEMA DE GESTAO E RETAGUARDA DO SAT</signAC>
<numeroCaixa>002</numeroCaixa>
</ide>
<emit>
<CNPJ>61099008000141</CNPJ>
<IE>111111111111</IE>
<IM>12345</IM>
<cRegTribISSQN>3</cRegTribISSQN>
<indRatISSQN>N</indRatISSQN>
</emit>
<dest/>
<det nItem="1">
<prod>
<cProd>123456</cProd>
<xProd>BORRACHA STAEDTLER pvc-free</xProd>
<CFOP>5102</CFOP>
<uCom>UN</uCom>
<qCom>1.0000</qCom>
<vUnCom>5.75</vUnCom>
<indRegra>A</indRegra>
</prod>
<imposto>
<ICMS>
<ICMSSN102>
<Orig>0</Orig>
<CSOSN>500</CSOSN>
</ICMSSN102>
</ICMS>
<PIS>
<PISSN>
<CST>49</CST>
</PISSN>
</PIS>
<COFINS>
<COFINSSN>
<CST>49</CST>
</COFINSSN>
</COFINS>
</imposto>
</det>
<total/>
<pgto>
<MP>
<cMP>01</cMP>
<vMP>10.00</vMP>
</MP>
</pgto>
</infCFe>
</CFe>
@danielgoncalves
Copy link
Author

Por alguma razão, comecei a receber a resposta 09099 "Erro desconhecido" ao submeter este XML ao equipamento SAT. Investigando se há alguma inconformidade.

@danielgoncalves
Copy link
Author

Na versão anterior a tag emit estava ausente. Mesmo inserindo a tag emit, o erro 09099 persiste.

@danielgoncalves
Copy link
Author

Nesta terceira revisão a função TesteFimaAFim passa, resultando 09000 "Emitido com sucesso".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment