Skip to content

Commit

Permalink
Merge pull request #41 from bredassistemas/master
Browse files Browse the repository at this point in the history
Adicionado suporte ao CRT MEI para DANFE e exemplos appteste
  • Loading branch information
danilobreda authored Sep 16, 2024
2 parents b8b9f1e + 4b7070c commit 3939cbe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion NFe.AppTeste.NetCore/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ private static det GetDetalhe(int i, CRT crt, ModeloDocumento modelo)

//Caso você resolva utilizar método ObterIcmsBasico(), comente esta proxima linha
TipoICMS =
crt == CRT.SimplesNacional
crt == CRT.SimplesNacional || crt == CRT.SimplesNacionalMei
? InformarCSOSN(Csosnicms.Csosn102)
: InformarICMS(Csticms.Cst00, VersaoServico.Versao310)
},
Expand Down
2 changes: 1 addition & 1 deletion NFe.AppTeste/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@ protected virtual det GetDetalhe(int i, CRT crt, ModeloDocumento modelo)

//Caso você resolva utilizar método ObterIcmsBasico(), comente esta proxima linha
TipoICMS =
crt == CRT.SimplesNacional
crt == CRT.SimplesNacional || crt == CRT.SimplesNacionalMei
? InformarCSOSN(Csosnicms.Csosn102)
: InformarICMS(Csticms.Cst00, VersaoServico.Versao310)
},
Expand Down
6 changes: 3 additions & 3 deletions NFe.Danfe.Base/NFe/NFeRetrato.frx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ namespace FastReport
if (icmsBasico != null)
{
var orig = icmsBasico.GetIcmsOrig();
if ((CRT)(Report.GetColumnValue("NFe.NFe.infNFe.emit.CRT")) == CRT.SimplesNacional)
if ((CRT)(Report.GetColumnValue("NFe.NFe.infNFe.emit.CRT")) == CRT.SimplesNacional || ((CRT)Report.GetColumnValue("NFe.NFe.infNFe.emit.CRT")) == CRT.SimplesNacionalMei)
{
if (icmsBasico.GetIcmsCst().CsticmsParaString() == "02" || icmsBasico.GetIcmsCst().CsticmsParaString() == "15" ||
icmsBasico.GetIcmsCst().CsticmsParaString() == "53" || icmsBasico.GetIcmsCst().CsticmsParaString() == "61")
Expand Down Expand Up @@ -463,8 +463,8 @@ namespace FastReport
private void DadosProdutosHeader_BeforePrint(object sender, EventArgs e)
{

if (((CRT)Report.GetColumnValue("NFe.NFe.infNFe.emit.CRT")) == CRT.SimplesNacional) {
Memo119.Text = "O/CSOSN";
if (((CRT)Report.GetColumnValue("NFe.NFe.infNFe.emit.CRT")) == CRT.SimplesNacional || ((CRT)Report.GetColumnValue("NFe.NFe.infNFe.emit.CRT")) == CRT.SimplesNacionalMei) {
Memo119.Text = "O/CSOSN";
}

_Tamanho = 0;
Expand Down

0 comments on commit 3939cbe

Please sign in to comment.