1- using System ;
2- using System . Collections . Generic ;
3- using System . Drawing . Imaging ;
4- using System . IO ;
5- using System . Linq ;
6- using System . Reflection ;
7- using System . Windows ;
8- using System . Windows . Forms ;
91using DFe . Classes . Flags ;
102using DFe . Utils ;
113using NFe . Classes ;
2719using NFe . Classes . Informacoes . Transporte ;
2820using NFe . Classes . Servicos . ConsultaCadastro ;
2921using NFe . Classes . Servicos . Tipos ;
22+ using NFe . Danfe . Nativo . NFCe ;
3023using NFe . Servicos ;
3124using NFe . Servicos . Retorno ;
25+ using NFe . Utils ;
3226using NFe . Utils . Email ;
27+ using NFe . Utils . Excecoes ;
3328using NFe . Utils . InformacoesSuplementares ;
3429using NFe . Utils . NFe ;
3530using NFe . Utils . Tributacao . Estadual ;
31+ using NFe . Utils . Tributacao . Federal ;
32+ using System ;
33+ using System . Collections . Generic ;
34+ using System . Drawing . Imaging ;
35+ using System . IO ;
36+ using System . Linq ;
37+ using System . Reflection ;
38+ using System . Security . Cryptography ;
39+ using System . Text ;
40+ using System . Windows ;
41+ using System . Windows . Forms ;
42+ using System . Windows . Media . Imaging ;
43+ using Image = System . Drawing . Image ;
3644using RichTextBox = System . Windows . Controls . RichTextBox ;
3745using SaveFileDialog = Microsoft . Win32 . SaveFileDialog ;
3846using WebBrowser = System . Windows . Controls . WebBrowser ;
39- using System . Windows . Media . Imaging ;
40- using NFe . Danfe . Nativo . NFCe ;
41- using NFe . Utils ;
42- using NFe . Utils . Excecoes ;
43- using NFe . Utils . Tributacao . Federal ;
44- using Image = System . Drawing . Image ;
45- using static System . Net . Mime . MediaTypeNames ;
46- using System . Text ;
47- using System . Security . Cryptography ;
48- using DFe . Utils . Assinatura ;
4947
5048namespace NFe . AppTeste
5149{
@@ -132,6 +130,7 @@ private void SalvarConfiguracao()
132130 try
133131 {
134132 _configuracoes . EnviarTributacaoIbsCbs = CbxEnviarTributacaoIbsCBS . IsChecked ?? false ;
133+ _configuracoes . EnviarTributacaoIS = CbxEnviarTributacaoIS . IsChecked ?? false ;
135134 _configuracoes . SalvarParaAqruivo ( _path + ArquivoConfiguracao ) ;
136135 }
137136 catch ( Exception ex )
@@ -162,8 +161,8 @@ private void CarregarConfiguracao()
162161 LogoEmitente . Source = BitmapFrame . Create ( stream , BitmapCreateOptions . None , BitmapCacheOption . OnLoad ) ;
163162 }
164163
165-
166164 CbxEnviarTributacaoIbsCBS . IsChecked = _configuracoes . EnviarTributacaoIbsCbs ;
165+ CbxEnviarTributacaoIS . IsChecked = _configuracoes . EnviarTributacaoIS ;
167166
168167 #endregion
169168 }
@@ -1518,7 +1517,7 @@ protected virtual det GetDetalhe(int i, CRT crt, ModeloDocumento modelo)
15181517 TipoPIS = new PISOutr { CST = CSTPIS . pis99 , pPIS = 0 , vBC = 0 , vPIS = 0 }
15191518 } ,
15201519
1521- IS = CbxEnviarTributacaoIbsCBS . IsChecked == true ? new IS
1520+ IS = CbxEnviarTributacaoIS . IsChecked == true ? new IS
15221521 {
15231522 cClassTribIS = cClassTribIS . ctis000001 ,
15241523 uTrib = "UN" ,
@@ -1550,7 +1549,7 @@ protected virtual det GetDetalhe(int i, CRT crt, ModeloDocumento modelo)
15501549 pCBS = 0.90m ,
15511550 vCBS = 0 ,
15521551 } ,
1553- // vIBS = 0 opcional
1552+ vIBS = 0 // opcional
15541553 }
15551554 } : null
15561555 }
@@ -1810,8 +1809,12 @@ protected virtual total GetTotal(VersaoServico versao, List<det> produtos)
18101809 vCBS = 0 ,
18111810 vCredPres = 0 ,
18121811 vCredPresCondSus = 0
1813- }
1812+ }
18141813 } : null ,
1814+ ISTot = CbxEnviarTributacaoIS . IsChecked == true ? new ISTot ( )
1815+ {
1816+ vIS = 0
1817+ } : null
18151818 } ;
18161819 return t ;
18171820 }
@@ -2306,7 +2309,5 @@ private void BtnCancelarNFeSubstituicao_OnClick(object sender, RoutedEventArgs e
23062309 Funcoes . Mensagem ( ex . Message , "Erro" , MessageBoxButton . OK ) ;
23072310 }
23082311 }
2309-
2310-
23112312 }
23122313}
0 commit comments