Skip to content

Commit e8bf41b

Browse files
committed
refactor: remover botão de testagem de eventos
1 parent 9074009 commit e8bf41b

2 files changed

Lines changed: 2 additions & 35 deletions

File tree

NFe.AppTeste/MainWindow.xaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,14 +1693,6 @@
16931693
VerticalAlignment="Top"
16941694
Width="177"
16951695
x:Name="BtnAtorInteressado" />
1696-
<Button
1697-
Click="BtnTestarEvento_Click"
1698-
Content="Testar evento"
1699-
HorizontalAlignment="Left"
1700-
Margin="375,260,0,0"
1701-
VerticalAlignment="Top"
1702-
Width="177"
1703-
x:Name="BtnTestaEvento" />
17041696
</Grid>
17051697
</TabItem>
17061698

NFe.AppTeste/MainWindow.xaml.cs

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3146,32 +3146,7 @@ private void BtnAtorInteressado_Click(object sender, RoutedEventArgs e)
31463146

31473147
private void CbxEnviarTributacaoDaReforma_OnClick(object sender, RoutedEventArgs e)
31483148
{
3149-
_configuracoes.EnviarTributacaoIbsCbsIs =
3150-
CbxEnviarTributacaoDaReforma.IsChecked ?? false;
3151-
}
3152-
3153-
private void BtnTestarEvento_Click(object sender, RoutedEventArgs e)
3154-
{
3155-
try
3156-
{
3157-
var servico = new ServicosNFe(_configuracoes.CfgServico);
3158-
var retorno =
3159-
servico.RecepcaoEventoInformacaoDeEfetivoPagamentoIntegralParaLiberarCreditoPresumidoDoAdquirente(
3160-
idLote: 1,
3161-
sequenciaEvento: 1,
3162-
cpfCnpj: _configuracoes.Emitente.CNPJ,
3163-
chaveNFe: "28251232876302000114550010000150801000012344",
3164-
indicadorDeQuitacaoDoPagamento: IndicadorDeQuitacaoDoPagamento.Quitado,
3165-
ufAutor: _configuracoes.EnderecoEmitente.UF,
3166-
versaoAplicativo: null,
3167-
dataHoraEvento: DateTime.Now
3168-
);
3169-
TrataRetorno(retorno);
3170-
}
3171-
catch (ValidacaoSchemaException ex)
3172-
{
3173-
Funcoes.Mensagem(ex.Message, "Erro", MessageBoxButton.OK);
3174-
}
3149+
_configuracoes.EnviarTributacaoIbsCbsIs = CbxEnviarTributacaoDaReforma.IsChecked ?? false;
31753150
}
31763151
}
3177-
}
3152+
}

0 commit comments

Comments
 (0)