Skip to content

Commit 42ee166

Browse files
author
Maurício Bernardo
committed
Correções revisão PR
1 parent 13bb24d commit 42ee166

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

NFe.AppTeste/MainWindow.xaml.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2274,11 +2274,10 @@ private void BtnAtorInteressado_Click(object sender, RoutedEventArgs e)
22742274
var idlote = Funcoes.InpuBox(this, titulo, "Identificador de controle do Lote de envio:", "1");
22752275
if (string.IsNullOrEmpty(idlote)) throw new Exception("A Id do Lote deve ser informada!");
22762276

2277-
var sequenciaEvento = Funcoes.InpuBox(this, titulo, "Número sequencial do evento:", "1");
2278-
if (string.IsNullOrEmpty(sequenciaEvento))
2279-
throw new Exception("O número sequencial deve ser informado!");
2277+
var sequenciaEvento = Funcoes.InpuBox(this, titulo, "Número sequencial do evento:", "2");
2278+
if (string.IsNullOrEmpty(sequenciaEvento)) throw new Exception("O número sequencial deve ser informado!");
22802279

2281-
var chave = Funcoes.InpuBox(this, titulo, "Chave da NFe:", "35240311656919000154550750000008281647961399");
2280+
var chave = Funcoes.InpuBox(this, titulo, "Chave da NFe:", "28241132876302000114550010000090041001283454");
22822281
if (string.IsNullOrEmpty(chave)) throw new Exception("A Chave deve ser informada!");
22832282
if (chave.Length != 44) throw new Exception("Chave deve conter 44 caracteres!");
22842283

NFe.Classes/Servicos/Evento/detEvento.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ public bool ShouldSerializedetPag()
316316
}
317317

318318
#endregion
319+
319320
#region Ator Interessado NFe
320321
/// <summary>
321322
/// P23 - Pessoas autorizadas a acessar o XML da NF-e

NFe.Classes/Servicos/Evento/retEvento.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class retEvento
5050
public infEventoRet infEvento { get; set; }
5151

5252
/// <summary>
53-
/// HP22 - Assinatura Digital do documento XML, a assinatura deverá ser aplicada no elemento infEvento.
53+
/// HR91 - Assinatura Digital do documento XML, a assinatura deverá ser aplicada no elemento infEvento.
5454
/// A decisão de assinar a mensagem fica da critério da UF.
5555
/// </summary>
5656
[XmlElement(Namespace = "http://www.w3.org/2000/09/xmldsig#")]

NFe.Servicos/ServicosNFe.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -642,14 +642,14 @@ public RetornoRecepcaoEvento RecepcaoEventoAtorInteressado(int idlote, int seque
642642
{
643643
cOrgao = Estado.AN,
644644
tpAmb = _cFgServico.tpAmb,
645+
CNPJ = cpfCnpjAtorEvento.Length == 11 ? null : cpfCnpjAtorEvento,
646+
CPF = cpfCnpjAtorEvento.Length == 11 ? cpfCnpjAtorEvento : null,
645647
chNFe = chaveNFe,
646648
dhEvento = dhEvento ?? DateTime.Now,
647649
tpEvento = NFeTipoEvento.TeNfeAtorInteressadoNFe,
648650
nSeqEvento = sequenciaEvento,
649651
verEvento = versaoServico,
650-
detEvento = detEvento,
651-
CPF = cpfCnpjAtorEvento.Length == 11 ? cpfCnpjAtorEvento : null,
652-
CNPJ = cpfCnpjAtorEvento.Length == 11 ? null : cpfCnpjAtorEvento
652+
detEvento = detEvento
653653
};
654654

655655
var evento = new evento

0 commit comments

Comments
 (0)