Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adicionado suporte ao CRT MEI para DANFE e exemplos appteste #41

Merged
merged 2 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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