Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@danielgoncalves danielgoncalves commented Jul 8, 2015

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

This comment has been minimized.

Copy link
Owner Author

@danielgoncalves danielgoncalves commented Jul 8, 2015

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

@danielgoncalves

This comment has been minimized.

Copy link
Owner Author

@danielgoncalves danielgoncalves commented Jul 8, 2015

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