BlocoC

package
v0.0.0-...-1f9a7c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegC100

type RegC100 struct {
	gorm.Model
	Reg        string    `gorm:"type:varchar(4)"`
	IndOper    string    `gorm:"type:varchar(1)"`
	IndEmit    string    `gorm:"type:varchar(1)"`
	CodPart    string    `gorm:"type:varchar(60)"`
	CodMod     string    `gorm:"type:varchar(2)"`
	CodSit     string    `gorm:"type:varchar(2)"`
	Ser        string    `gorm:"type:varchar(3)"`
	NumDoc     string    `gorm:"type:varchar(9)"`
	ChvNfe     string    `gorm:"type:varchar(44);unique_index"`
	DtDoc      time.Time `gorm:"type:date"`
	DtES       time.Time `gorm:"type:date"`
	VlDoc      float64   `gorm:"type:decimal(19,2)"`
	IndPgto    string    `gorm:"type:varchar(1)"`
	VlDesc     float64   `gorm:"type:decimal(19,2)"`
	VlAbatNt   float64   `gorm:"type:decimal(19,2)"`
	VlMerc     float64   `gorm:"type:decimal(19,2)"`
	IndFrt     string    `gorm:"type:varchar(1)"`
	VlFrt      float64   `gorm:"type:decimal(19,2)"`
	VlSeg      float64   `gorm:"type:decimal(19,2)"`
	VlOutDa    float64   `gorm:"type:decimal(19,2)"`
	VlBcIcms   float64   `gorm:"type:decimal(19,2)"`
	VlIcms     float64   `gorm:"type:decimal(19,2)"`
	VlBcIcmsSt float64   `gorm:"type:decimal(19,2)"`
	VlIcmsSt   float64   `gorm:"type:decimal(19,2)"`
	VlIpi      float64   `gorm:"type:decimal(19,2)"`
	VlPis      float64   `gorm:"type:decimal(19,2)"`
	VlCofins   float64   `gorm:"type:decimal(19,2)"`
	VlPisSt    float64   `gorm:"type:decimal(19,2)"`
	VlCofinsSt float64   `gorm:"type:decimal(19,2)"`
	DtIni      time.Time `gorm:"type:date"`
	DtFin      time.Time `gorm:"type:date"`
	Cnpj       string    `gorm:"type:varchar(14)"`
}

Estrutura criada usando layout Guia Prático EFD-ICMS/IPI – Versão 2.0.20 Atualização: 07/12/2016 Estrutura do registro C100

func CreateRegC100

func CreateRegC100(read iRegC100) RegC100

Cria estrutura populada

func (RegC100) TableName

func (RegC100) TableName() string

Metodo do nome da tabela

type RegC100Sped

type RegC100Sped struct {
	Ln      []string
	Reg0000 Bloco0.Reg0000
}

Implementando Interface do Sped RegC100

func (RegC100Sped) GetRegC100

func (s RegC100Sped) GetRegC100() RegC100

Metodo popula strutura com conteudo do sped fiscal

type RegC170

type RegC170 struct {
	gorm.Model
	Reg           string `gorm:"type:varchar(4)"`
	NumItem       string `gorm:"type:varchar(3)"`
	CodItem       string `gorm:"type:varchar(60)"`
	DescrCompl    string
	Qtd           float64 `gorm:"type:decimal(19,5)"`
	Unid          string  `gorm:"type:varchar(6)"`
	VlItem        float64 `gorm:"type:decimal(19,2)"`
	VlDesc        float64 `gorm:"type:decimal(19,2)"`
	IndMov        string  `gorm:"type:varchar(1)"`
	CstIcms       string  `gorm:"type:varchar(3)"`
	Cfop          string  `gorm:"type:varchar(4)"`
	CodNat        string  `gorm:"type:varchar(10)"`
	VlBcIcms      float64 `gorm:"type:decimal(19,2)"`
	AliqIcms      float64 `gorm:"type:decimal(6,2)"`
	VlIcms        float64 `gorm:"type:decimal(19,2)"`
	VlBcIcmsSt    float64 `gorm:"type:decimal(19,2)"`
	AliqSt        float64 `gorm:"type:decimal(19,2)"`
	VlIcmsSt      float64 `gorm:"type:decimal(19,2)"`
	IndApur       string  `gorm:"type:varchar(1)"`
	CstIpi        string  `gorm:"type:varchar(2)"`
	CodEnq        string  `gorm:"type:varchar(3)"`
	VlBcIpi       float64 `gorm:"type:decimal(19,2)"`
	AliqIpi       float64 `gorm:"type:decimal(6,2)"`
	VlIpi         float64 `gorm:"type:decimal(19,2)"`
	CstPis        string  `gorm:"type:varchar(2)"`
	VlBcPis       float64 `gorm:"type:decimal(19,2)"`
	AliqPis01     float64 `gorm:"type:decimal(8,4)"`
	QuantBcPis    float64 `gorm:"type:decimal(19,3)"`
	AliqPis02     float64 `gorm:"type:decimal(8,4)"`
	VlPis         float64 `gorm:"type:decimal(19,2)"`
	CstCofins     string  `gorm:"type:varchar(2)"`
	VlBcCofins    float64 `gorm:"type:decimal(19,2)"`
	AliqCofins01  float64 `gorm:"type:decimal(8,4)"`
	QuantBcCofins float64 `gorm:"type:decimal(19,3)"`
	AliqCofins02  float64 `gorm:"type:decimal(8,4)"`
	VlCofins      float64 `gorm:"type:decimal(19,2)"`
	CodCta        string
	EntradaSaida  string    `gorm:"type:varchar(1)"` // Se for entrada 0, se for saida 1
	NumDoc        string    `gorm:"type:varchar(9)"`
	DtIni         time.Time `gorm:"type:date"`
	DtFin         time.Time `gorm:"type:date"`
	Cnpj          string    `gorm:"type:varchar(14)"`
}

func CreateRegC170

func CreateRegC170(read iRegC170) RegC170

func (RegC170) TableName

func (RegC170) TableName() string

type RegC170Sped

type RegC170Sped struct {
	Ln      []string
	Reg0000 Bloco0.Reg0000
	RegC100 RegC100
	Digito  string
}

Implementando Interface do SpedRegC170

func (RegC170Sped) GetRegC170

func (s RegC170Sped) GetRegC170() RegC170

type RegC400

type RegC400 struct {
	gorm.Model
	Reg    string    `gorm:"type:varchar(4)"`
	CodMod string    `gorm:"type:varchar(2)"`
	EcfMod string    `gorm:"type:varchar(20)"`
	EcfFab string    `gorm:"type:varchar(21)"`
	EcfCx  string    `gorm:"type:varchar(3)"`
	DtIni  time.Time `gorm:"type:date"`
	DtFin  time.Time `gorm:"type:date"`
	Cnpj   string    `gorm:"type:varchar(14)"`
}

func CreateRegC400

func CreateRegC400(read iRegC400) RegC400

func (RegC400) TableName

func (RegC400) TableName() string

type RegC400Sped

type RegC400Sped struct {
	Ln      []string
	Reg0000 Bloco0.Reg0000
}

Implementando Interfaces do Sped RegC400

func (RegC400Sped) GetRegC400

func (s RegC400Sped) GetRegC400() RegC400

type RegC405

type RegC405 struct {
	gorm.Model
	Reg       string    `gorm:"type:varchar(4)"`
	DtDoc     time.Time `gorm:"type:date"`
	Cro       string    `gorm:"type:varchar(3)"`
	Crz       string    `gorm:"type:varchar(6)"`
	NumCooFin string    `gorm:"type:varchar(9)"`
	GtFin     float64   `gorm:"type:decimal(19,2)"`
	VlBrt     float64   `gorm:"type:decimal(19,2)"`
	DtIni     time.Time `gorm:"type:date"`
	DtFin     time.Time `gorm:"type:date"`
	Cnpj      string    `gorm:"type:varchar(14)"`
}

func CreateRegC405

func CreateRegC405(read iRegC405) RegC405

func (RegC405) TableName

func (RegC405) TableName() string

type RegC405Sped

type RegC405Sped struct {
	Ln      []string
	Reg0000 Bloco0.Reg0000
}

Implementando Interface do Sped RegC405

func (RegC405Sped) GetRegC405

func (s RegC405Sped) GetRegC405() RegC405

type RegC420

type RegC420 struct {
	gorm.Model
	Reg        string  `gorm:"type:varchar(4)"`
	CodTotPar  string  `gorm:"type:varchar(7)"`
	VlrAcumTot float64 `gorm:"type:decimal(19,2)"`
	NrTot      string  `gorm:"type:varchar(2)"`
	DescrNrTot string
	DtIni      time.Time `gorm:"type:date"`
	DtFin      time.Time `gorm:"type:date"`
	Cnpj       string    `gorm:"type:varchar(14)"`
}

Estrutura criada usando layout Guia Prático EFD-ICMS/IPI – Versão 2.0.20 Atualização: 07/12/2016 Estrutura do registro RegC420 do Sped Fiscal

func CreateRegC420

func CreateRegC420(read iRegC420) RegC420

Aplicando RegC420

func (RegC420) TableName

func (RegC420) TableName() string

Nome da tabela que o gorm deve criar no DB

type RegC420Sped

type RegC420Sped struct {
	Ln      []string
	Reg0000 Bloco0.Reg0000
}

Implementando Interface do Sped RegC420

func (RegC420Sped) GetRegC420

func (s RegC420Sped) GetRegC420() RegC420

type RegC425

type RegC425 struct {
	gorm.Model
	Reg      string    `gorm:"type:varchar(4)"`
	CodItem  string    `gorm:"type:varchar(60)"`
	Qtd      float64   `gorm:"type:decimal(19,3)"`
	Unid     string    `gorm:"type:varchar(6)"`
	VlItem   float64   `gorm:"type:decimal(19,2)"`
	VlPis    float64   `gorm:"type:decimal(19,2)"`
	VlCofins float64   `gorm:"type:decimal(19,2)"`
	DtIni    time.Time `gorm:"type:date"`
	DtFin    time.Time `gorm:"type:date"`
	Cnpj     string    `gorm:"type:varchar(14)"`
}

func CreateRegC425

func CreateRegC425(read iRegC425) RegC425

func (RegC425) TableName

func (RegC425) TableName() string

type RegC425Sped

type RegC425Sped struct {
	Ln      []string
	Reg0000 Bloco0.Reg0000
	Digito  string
}

Implementando Interface do Sped RegC425

func (RegC425Sped) GetRegC425

func (s RegC425Sped) GetRegC425() RegC425

type RegC460

type RegC460 struct {
	gorm.Model
	Reg      string    `gorm:"type:varchar(4)"`
	CodMod   string    `gorm:"type:varchar(2)"`
	CodSit   string    `gorm:"type:varchar(2)"`
	NumDoc   string    `gorm:"type:varchar(9)"`
	DtDoc    time.Time `gorm:"type:date"`
	VlDoc    float64   `gorm:"type:decimal(19,2)"`
	VlPis    float64   `gorm:"type:decimal(19,2)"`
	VlCofins float64   `gorm:"type:decimal(19,2)"`
	CpfCnpj  string    `gorm:"type:varchar(14)"`
	NomAdq   string    `gorm:"type:varchar(60)"`
	DtIni    time.Time `gorm:"type:date"`
	DtFin    time.Time `gorm:"type:date"`
	Cnpj     string    `gorm:"type:varchar(14)"`
}

func CreateRegC460

func CreateRegC460(read iRegC460) RegC460

Cria estrutura populada

func (RegC460) TableName

func (RegC460) TableName() string

type RegC460Sped

type RegC460Sped struct {
	Ln      []string
	Reg0000 Bloco0.Reg0000
}

func (RegC460Sped) GetRegC460

func (s RegC460Sped) GetRegC460() RegC460

type RegC465

type RegC465 struct {
	gorm.Model
	Reg    string    `gorm:"type:varchar(4)"`
	ChvCfe string    `gorm:"type:varchar(44)"`
	NumCcF string    `gorm:"type:varchar(9)"`
	DtIni  time.Time `gorm:"type:date"`
	DtFin  time.Time `gorm:"type:date"`
	Cnpj   string    `gorm:"type:varchar(14)"`
}

func CreateRegC465

func CreateRegC465(read iRegC465) RegC465

Cria estrutura populada

func (RegC465) TableName

func (RegC465) TableName() string

type RegC465Sped

type RegC465Sped struct {
	Ln     []string
	Reg000 Bloco0.Reg0000
}

func (RegC465Sped) GetRegC465

func (s RegC465Sped) GetRegC465() RegC465

type RegC470

type RegC470 struct {
	gorm.Model
	Reg      string    `gorm:"type:varchar(4)"`
	CodItem  string    `gorm:"type:varchar(60)"`
	Qtd      float64   `gorm:"type:decimal(19,2)"`
	QtdCanc  float64   `gorm:"type:decimal(19,2)"`
	Unid     string    `gorm:"type:varchar(6)"`
	VlItem   float64   `gorm:"type:decimal(19,2)"`
	CstIcms  string    `gorm:"type:varchar(3)"`
	Cfop     string    `gorm:"type:varchar(4)"`
	AliqIcms float64   `gorm:"type:decimal(6,2)"`
	VlPis    float64   `gorm:"type:decimal(19,2)"`
	VlCofins float64   `gorm:"type:decimal(19,2)"`
	DtIni    time.Time `gorm:"type:date"`
	DtFin    time.Time `gorm:"type:date"`
	Cnpj     string    `gorm:"type:varchar(14)"`
}

func CreateRegC470

func CreateRegC470(read iRegC470) RegC470

Cria estrutura populada

func (RegC470) TableName

func (RegC470) TableName() string

type RegC470Sped

type RegC470Sped struct {
	Ln     []string
	Reg000 Bloco0.Reg0000
	Digito string
}

func (RegC470Sped) GetRegC470

func (s RegC470Sped) GetRegC470() RegC470

type RegC490

type RegC490 struct {
	gorm.Model
	Reg      string    `gorm:"type:varchar(4)"`
	CstIcms  string    `gorm:"type:varchar(3)"`
	Cfop     string    `gorm:"type:varchar(4)"`
	AliqIcms float64   `gorm:"type:decimal(6,2)"`
	VlOpr    float64   `gorm:"type:decimal(19,2)"`
	VlBcIcms float64   `gorm:"type:decimal(19,2)"`
	VlIcms   float64   `gorm:"type:decimal(19,2)"`
	CodObs   string    `gorm:"type:varchar(6)"`
	DtIni    time.Time `gorm:"type:date"`
	DtFin    time.Time `gorm:"type:date"`
	Cnpj     string    `gorm:"type:varchar(14)"`
}

func CreateRegC490

func CreateRegC490(read iRegC490) RegC490

Cria estrutura populada

func (RegC490) TableName

func (RegC490) TableName() string

Metodo do nome da tabela

type RegC490Sped

type RegC490Sped struct {
	Ln     []string
	Reg000 Bloco0.Reg0000
}

Implementando Interface do Sped RegC490

func (RegC490Sped) GetRegC490

func (s RegC490Sped) GetRegC490() RegC490

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL