-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preenchimento do Registro0000 com dados enviados na assinatura do con…
…strutor do arquivo da EFD Fiscal (para a EFD Contribuições preciso avaliar melhor, pode ser que existam filiais no arquivo), e criação de enums específicos para tipos de atividade da efd fiscal e efd contrib. #81
- Loading branch information
1 parent
9f9c744
commit 0a72250
Showing
8 changed files
with
157 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Text; | ||
|
||
namespace FiscalBr.Common.Sped.Enums | ||
{ | ||
public enum TipoAtivSpedContrib | ||
{ | ||
/// 0 - Industrial ou equiparado a industrial; <para/> | ||
/// 1 - Prestador de serviços; <para/> | ||
/// 2 - Atividade de comércio; <para/> | ||
/// 3 - Pessoas jurídicas referidas nos §§ 6º, 8º e 9º do art. 3º da Lei nº 9.718, de 1998; <para/> | ||
/// 4 - Atividade imobiliária; <para/> | ||
/// 9 - Outros. | ||
|
||
/// <summary> | ||
/// Industrial ou equiparado a industrial | ||
/// </summary> | ||
[DefaultValue("0")] IndustrialOuEquiparado, | ||
[DefaultValue("1")] PrestadorServicos, | ||
[DefaultValue("2")] AtividadeComercio, | ||
[DefaultValue("3")] PjsLei9718de1998, | ||
[DefaultValue("4")] AtividadeImobiliaria, | ||
/// <summary> | ||
/// Outros | ||
/// </summary> | ||
[DefaultValue("9")] Outros | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Text; | ||
|
||
namespace FiscalBr.Common.Sped.Enums | ||
{ | ||
public enum TipoAtivSpedFiscal | ||
{ | ||
/// <summary> | ||
/// Industrial ou equiparado a industrial | ||
/// </summary> | ||
[DefaultValue("0")] IndustrialOuEquiparado, | ||
|
||
/// <summary> | ||
/// Outros | ||
/// </summary> | ||
[DefaultValue("1")] Outros | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace FiscalBr.Common.ValueObjects | ||
{ | ||
public class Empresa : ValueObject | ||
{ | ||
protected Empresa() { } | ||
|
||
public Empresa(string razaoSocial, string cpfCnpj, string inscEstadual) | ||
{ | ||
RazaoSocial = razaoSocial; | ||
CpfCnpj = cpfCnpj; | ||
InscEstadual = inscEstadual; | ||
} | ||
|
||
//public SoftwareHouse(string razaoSocial, CpfCnpj cpfCnpj, Email email) | ||
//{ | ||
// RazaoSocial = razaoSocial; | ||
// CpfCnpj = cpfCnpj; | ||
// Email = email; | ||
//} | ||
|
||
public string RazaoSocial { get; } = string.Empty; | ||
|
||
public CpfCnpj CpfCnpj { get; } = null; | ||
|
||
public string InscEstadual { get; } = string.Empty; | ||
|
||
public string InscMunicipal { get; } = string.Empty; | ||
|
||
public string InscSuframa { get; } = string.Empty; | ||
|
||
public string CodMunicipio { get; } = string.Empty; | ||
|
||
public string SiglaUf { get; } = string.Empty; | ||
|
||
public override string ToString() => $"[{CpfCnpj}] {RazaoSocial}"; | ||
|
||
protected override IEnumerable<object> GetEqualityComponents() | ||
{ | ||
yield return RazaoSocial; | ||
yield return CpfCnpj; | ||
yield return InscEstadual; | ||
yield return InscMunicipal; | ||
yield return InscSuframa; | ||
yield return CodMunicipio; | ||
yield return SiglaUf; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters