Skip to content

Commit

Permalink
Merge pull request #37 from neicecilio/feature/cana
Browse files Browse the repository at this point in the history
fix:Ajuste nos níveis de serialização do grupo de cana
  • Loading branch information
danilobreda authored Sep 7, 2024
2 parents 694e523 + 0b3f449 commit ce3261a
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 60 deletions.
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); }
}
}
}

0 comments on commit ce3261a

Please sign in to comment.