Ir para conteúdo
  • Cadastre-se

dev botao

Email Cancelamento NF-e


Ver Solução Respondido por José M. S. Junior,
  • Este tópico foi criado há 2324 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Recommended Posts

Postado

Pessoal, eu utilizo o ACBRMONITORPLUS, hoje me deparei com uma pequena dificuldade, quanto eu gero uma carta de correção ele me da o retorno do arquivo, porém quando eu cancelo não.

Depois quando preciso enviar um email de cancelamento não tenho como proceder mesmo fazendo uma montagem, seria interessante assim como temos o comando NFE.EnviarEmailEvento ter um NFE.EnviarEmailCancelamento ou então o retorno do cancelamento ter o arquivo para que possamos utilizar o mesmo NFE.EnviarEmailEvento, pois sabe-se que o cancelamento é um evento não é mesmo?

  • Administradores
Postado

Tópico movido para a área do SAC, para que o SLA de respostas seja considerado

  • Curtir 1
Consultora SAC ACBr

Juliana Tamizou

Gerente de Projetos ACBr / Diretora de Marketing AFRAC
Ajude o Projeto ACBr crescer - Seja Pro

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.  Discord

Projeto ACBr - A maior comunidade Open Source de Automação Comercial do Brasil


Participe de nosso canal no Discord e fique ainda mais próximo da Comunidade !!

Postado

Claro utilizo o NFE.CancelarNFe, porém a resposta vem sem o retorno arquivo como abaixo, e eu gostaria de enviar email com o cancelamento anexado usando o NFe.EnviarEmailEvento:
 

OK: Cancelamento homologado fora de prazo
[Cancelamento]
CNPJDest=20964555000160
CStat=155
CUF=35
DhRecbto=09/08/2018 20:53:15
Msg=
VerAplic=SP_EVENTOS_PL_100
Versao=SP_EVENTOS_PL_100
XML=<procEventoNFe versao="1.00" xmlns="http://www.portalfiscal.inf.br/nfe"><evento versao="1.00"><infEvento Id="ID1101113518072794865400010655001000000224112217570001"><cOrgao>35</cOrgao><tpAmb>1</tpAmb><CNPJ>27948654000106</CNPJ><chNFe>35180727948654000106550010000002241122175700</chNFe><dhEvento>2018-08-09T20:52:44-03:00</dhEvento><tpEvento>110111</tpEvento><nSeqEvento>1</nSeqEvento><verEvento>1.00</verEvento><detEvento versao="1.00"><descEvento>Cancelamento</descEvento><nProt>135180508763704</nProt><xJust>CONSIDERAR 2 VOLUMES</xJust></detEvento></infEvento><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><Reference URI="#ID1101113518072794865400010655001000000224112217570001"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>bA8bboFeMApBdPnnB3x0ejNyrNM=</DigestValue></Reference></SignedInfo><SignatureValue>Be+ok3StOu6mVrRw5kkfCZms/FJRcj24xX9ZC/Cjd5+oNgyKxhox640jOLLm9KX/2zVEjL4EXwjptMsSnt+bHB/n9XPdCdnzrwngRH+cZ7EylxrBXvTdk+dRsmalDvDN4ek40VQoPpjcAEvVHLx6d32fin3hYq5sJmsVl3FjJK0KBpjjglla2Sr6juGDgcRNdjvKxEPZTeMXrwcHssgqbbMt+vb7dmZAVoeBl+22JOlwJMHe6IuG99R0xNzMjtqijJQUVEurh0yyFKYurwli8UL78siME/0yU5a8jM27TO3nfrZB3utEYD1vJcR7sPIUE9G46W6KdaHreqq3C9BYTQ==</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIIEzCCBfugAwIBAgIQXLbhzUB47Va/pKiYuLuzojANBgkqhkiG9w0BAQsFADB4MQswCQYDVQQGEwJCUjETMBEGA1UEChMKSUNQLUJyYXNpbDE2MDQGA1UECxMtU2VjcmV0YXJpYSBkYSBSZWNlaXRhIEZlZGVyYWwgZG8gQnJhc2lsIC0gUkZCMRwwGgYDVQQDExNBQyBDZXJ0aXNpZ24gUkZCIEc1MB4XDTE3MDcx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woSGumPAcnBT6NTLeoLUVf+TcrayabrpmfnhsyXXdKW7eMBZIA8hCsQ6T+GFcw/6ZrZAAUWx/+XJlKgrbnlklBWzyGr+xs7ts5zfCAxWX2XN491QGNTmOk0yzqSjLvkjVAyIDLNEqlM5VeMdoeu97j9yPfuH7KosIxqK00G2EZ0aZd68+ejpzYXCgQFG9Jgw3nLleMfu++eijv//1FGbcukx9EV7TUVgIRPuDAThdxaq+vKwbXjyyYp4rD8OKA7TYcJYvK5EHM41u2u4PCUvORWRu55IptUZ1e8Uo5bZr8G302fDzbiDynSRAWUuz4DpIUYqtChcKjEmihs/MQejy65XDXDS3ZYyG03YULTf/GmaAUtx2Hl9hLvoXYVCb+IVwX7FoKABQaB4d4bIJuDaBQWwoTew==</X509Certificate></X509Data></KeyInfo></Signature></evento><retEvento versao="1.00"><infEvento><tpAmb>1</tpAmb><verAplic>SP_EVENTOS_PL_100</verAplic><cOrgao>35</cOrgao><cStat>155</cStat><xMotivo>Cancelamento homologado fora de prazo</xMotivo><chNFe>35180727948654000106550010000002241122175700</chNFe><tpEvento>110111</tpEvento><xEvento>Cancelamento registrado</xEvento><nSeqEvento>1</nSeqEvento><CNPJDest>20964555000160</CNPJDest><emailDest>[email protected]</emailDest><dhRegEvento>2018-08-09T20:53:15-03:00</dhRegEvento><nProt>135180536810822</nProt></infEvento></retEvento></procEventoNFe>
XMotivo=Cancelamento homologado fora de prazo
chNFe=35180727948654000106550010000002241122175700
[email protected]
nProt=135180536810822
nSeqEvento=1
tpAmb=1
tpEvento=110111
xEvento=Cancelamento registrado

Postado

Já um evento de carta de correção com o NFE.EnviarEvento retorna o arquivo certinho, veja abaixo:

OK: 
[Evento]
CStat=128
CUF=0
DhRecbto=30/12/1899
Msg=
VerAplic=SP_EVENTOS_PL_100
Versao=
XMotivo=Lote de Evento Processado
cOrgao=35
idLote=135
tpAmb=1
[Evento001]
CNPJDest=01157227000108
CStat=135
CUF=0
DhRecbto=30/12/1899
Id=
Msg=
VerAplic=SP_EVENTOS_PL_100
Versao=
XML=<procEventoNFe versao="1.00" xmlns="http://www.portalfiscal.inf.br/nfe"><evento versao="1.00"><infEvento Id="ID1101103518052794865400010655001000000135100041085301"><cOrgao>35</cOrgao><tpAmb>1</tpAmb><CNPJ>27948654000106</CNPJ><chNFe>35180527948654000106550010000001351000410853</chNFe><dhEvento>2018-08-09T21:08:24-03:00</dhEvento><tpEvento>110110</tpEvento><nSeqEvento>1</nSeqEvento><verEvento>1.00</verEvento><detEvento versao="1.00"><descEvento>Carta de Correcao</descEvento><xCorrecao>CONSIDERAR 2 VOLUMES</xCorrecao><xCondUso>A Carta de Correcao e disciplinada pelo paragrafo 1o-A do art. 7o do Convenio S/N, de 15 de dezembro de 1970 e pode ser utilizada para regularizacao de erro ocorrido na emissao de documento fiscal, desde que o erro nao esteja relacionado com: I - as variaveis que determinam o valor do imposto tais como: base de calculo, aliquota, diferenca de preco, quantidade, valor da operacao ou da prestacao; II - a correcao de dados cadastrais que implique mudanca do remetente ou do destinatario; III - a data de emissao ou de saida.</xCondUso></detEvento></infEvento><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><Reference URI="#ID1101103518052794865400010655001000000135100041085301"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>f8Sx2nxvX63n9C8/fBX+s2H9DIg=</DigestValue></Reference></SignedInfo><SignatureValue>dqPNY6XXGyr++JMhD+SoJZFG/2IC6BBOXVTE3QJl460ZNQ6OLau3zANak3wt8Y24QTV0eCrGb4bHn8N/gaHqnG9v7bn+oSmlfA3PWfh0xQ5wMhDlwfcPp6pP+5am4c1/FxLibmU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XNpbC5jZXJ0aXNpZ24uY29tLmJyL3JlcG9zaXRvcmlvL2NlcnRpZmljYWRvcy9BQ19DZXJ0aXNpZ25fUkZCX0c1LnA3YzA5BggrBgEFBQcwAYYtaHR0cDovL29jc3AtYWMtY2VydGlzaWduLXJmYi5jZXJ0aXNpZ24uY29tLmJyMA0GCSqGSIb3DQEBCwUAA4ICAQAFLNBrJ2YgX3Yh4X94P2Hel4oC9sVC4tvJz8yEw7xqq+k08YoBiIhhCXygeudtS7xSa9yrQGf/6fJPMvZWyD9T5zm5eOWxeuPYd24mK2akUoonFi/2RFONlqPGzAR/Vxuh5KiufeluGVsKR1gpEErKXXSQlwMMw+sZQ6lO5GG/59s6GMAAVc4iepvXHtsXq58s16qztgXCZNVpM8WLAm/UVIUej4GqBeHGjr82CG0g9PDQSmZ0A5/sPYKlH8z4lMUIhLmNbk7OCvsnWLwoSGumPAcnBT6NTLeoLUVf+TcrayabrpmfnhsyXXdKW7eMBZIA8hCsQ6T+GFcw/6ZrZAAUWx/+XJlKgrbnlklBWzyGr+xs7ts5zfCAxWX2XN491QGNTmOk0yzqSjLvkjVAyIDLNEqlM5VeMdoeu97j9yPfuH7KosIxqK00G2EZ0aZd68+ejpzYXCgQFG9Jgw3nLleMfu++eijv//1FGbcukx9EV7TUVgIRPuDAThdxaq+vKwbXjyyYp4rD8OKA7TYcJYvK5EHM41u2u4PCUvORWRu55IptUZ1e8Uo5bZr8G302fDzbiDynSRAWUuz4DpIUYqtChcKjEmihs/MQejy65XDXDS3ZYyG03YULTf/GmaAUtx2Hl9hLvoXYVCb+IVwX7FoKABQaB4d4bIJuDaBQWwoTew==</X509Certificate></X509Data></KeyInfo></Signature></evento><retEvento versao="1.00"><infEvento><tpAmb>1</tpAmb><verAplic>SP_EVENTOS_PL_100</verAplic><cOrgao>35</cOrgao><cStat>135</cStat><xMotivo>Evento registrado e vinculado a NF-e</xMotivo><chNFe>35180527948654000106550010000001351000410853</chNFe><tpEvento>110110</tpEvento><xEvento>Carta de Correcao registrada</xEvento><nSeqEvento>1</nSeqEvento><CNPJDest>01157227000108</CNPJDest><emailDest>[email protected]</emailDest><dhRegEvento>2018-08-09T21:08:27-03:00</dhRegEvento><nProt>135180536844099</nProt></infEvento></retEvento></procEventoNFe>
XMotivo=Evento registrado e vinculado a NF-e
arquivo=D:\XML\NFe\27948654000106\NFe\201808\Evento\CCe\1101103518052794865400010655001000000135100041085301-procEventoNFe.xml
cOrgao=35
chNFe=35180527948654000106550010000001351000410853
dhRegEvento=09/08/2018 21:08:27
digVal=
[email protected]
nProt=135180536844099
nSeqEvento=1
tpAmb=1
tpEvento=110110
xEvento=Carta de Correcao registrada

  • Este tópico foi criado há 2324 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.
Visitante
Este tópico está agora fechado para novas respostas
×
×
  • Criar Novo...

Informação Importante

Colocamos cookies em seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies, caso contrário, assumiremos que você está bem para continuar.

The popup will be closed in 10 segundos...