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

fix:Ajuste nos níveis de serialização do grupo de cana #37

Merged
merged 1 commit into from
Sep 7, 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
61 changes: 61 additions & 0 deletions NFe.Classes/Informacoes/Cana/cana.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ namespace NFe.Classes.Informacoes.Cana
{
public class cana
{
private decimal _qTotMes;
private decimal _qTotAnt;
private decimal _qTotGer;
private decimal _vFor;
private decimal _vTotDed;
private decimal _vLiqFor;

/// <summary>
/// ZC02 - Identificação da safra
/// </summary>
Expand All @@ -53,10 +60,64 @@ public class cana
[XmlElement("forDia")]
public List<forDia> forDia { get; set; }

/// <summary>
/// ZC07 - Quantidade Total do Mês
/// </summary>
public decimal qTotMes
{
get { return _qTotMes; }
set { _qTotMes = value.Arredondar(10); }
}

/// <summary>
/// ZC08 - Quantidade Total Anterior
/// </summary>
public decimal qTotAnt
{
get { return _qTotAnt; }
set { _qTotAnt = value.Arredondar(10); }
}

/// <summary>
/// ZC09 - Quantidade Total Geral
/// </summary>
public decimal qTotGer
{
get { return _qTotGer; }
set { _qTotGer = value.Arredondar(10); }
}

/// <summary>
/// ZC10 - Grupo Deduções – Taxas e Contribuições
/// </summary>
[XmlElement("deduc")]
public List<deduc> deduc { get; set; }

/// <summary>
/// ZC13 - Valor dos Fornecimentos
/// </summary>
public decimal vFor
{
get { return _vFor; }
set { _vFor = value.Arredondar(2); }
}

/// <summary>
/// ZC14 - Valor Total da Dedução
/// </summary>
public decimal vTotDed
{
get { return _vTotDed; }
set { _vTotDed = value.Arredondar(2); }
}

/// <summary>
/// ZC15 - Valor Líquido dos Fornecimentos
/// </summary>
public decimal vLiqFor
{
get { return _vLiqFor; }
set { _vLiqFor = value.Arredondar(2); }
}
}
}
30 changes: 0 additions & 30 deletions NFe.Classes/Informacoes/Cana/deduc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ namespace NFe.Classes.Informacoes.Cana
public class deduc
{
private decimal _vDed;
private decimal _vFor;
private decimal _vTotDed;
private decimal _vLiqFor;

/// <summary>
/// ZC11 - Descrição da Dedução
Expand All @@ -52,32 +49,5 @@ public decimal vDed
get { return _vDed; }
set { _vDed = value.Arredondar(2); }
}

/// <summary>
/// ZC13 - Valor dos Fornecimentos
/// </summary>
public decimal vFor
{
get { return _vFor; }
set { _vFor = value.Arredondar(2); }
}

/// <summary>
/// ZC14 - Valor Total da Dedução
/// </summary>
public decimal vTotDed
{
get { return _vTotDed; }
set { _vTotDed = value.Arredondar(2); }
}

/// <summary>
/// ZC15 - Valor Líquido dos Fornecimentos
/// </summary>
public decimal vLiqFor
{
get { return _vLiqFor; }
set { _vLiqFor = value.Arredondar(2); }
}
}
}
30 changes: 0 additions & 30 deletions NFe.Classes/Informacoes/Cana/forDia.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ namespace NFe.Classes.Informacoes.Cana
public class forDia
{
private decimal _qtde;
private decimal _qTotMes;
private decimal _qTotAnt;
private decimal _qTotGer;

/// <summary>
/// ZC05 - Dia
Expand All @@ -55,32 +52,5 @@ public decimal qtde
get { return _qtde; }
set { _qtde = value.Arredondar(10); }
}

/// <summary>
/// ZC07 - Quantidade Total do Mês
/// </summary>
public decimal qTotMes
{
get { return _qTotMes; }
set { _qTotMes = value.Arredondar(10); }
}

/// <summary>
/// ZC08 - Quantidade Total Anterior
/// </summary>
public decimal qTotAnt
{
get { return _qTotAnt; }
set { _qTotAnt = value.Arredondar(10); }
}

/// <summary>
/// ZC09 - Quantidade Total Geral
/// </summary>
public decimal qTotGer
{
get { return _qTotGer; }
set { _qTotGer = value.Arredondar(10); }
}
}
}
Loading