BlocoH

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 RegH005

type RegH005 struct {
	gorm.Model
	Reg    string    `gorm:"type:varchar(4)"`
	DtInv  time.Time `gorm:"type:date"`
	VlInv  float64   `gorm:"type:decimal(19,2)"`
	MotInv string    `gorm:"type:varchar(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 H005

func CreateRegH005

func CreateRegH005(read iRegH005) RegH005

Metodo que criar a struct

func (RegH005) TableName

func (RegH005) TableName() string

Metodo define nome da Tabela no banco

type RegH005Sped

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

Implementando Interface do Sped RegH005

func (RegH005Sped) GetRegH005

func (s RegH005Sped) GetRegH005() RegH005

Metodo que popula o H005 do arquivo de sped

type RegH010

type RegH010 struct {
	gorm.Model
	Reg      string  `gorm:"type:varchar(4)"`
	CodItem  string  `gorm:"type:varchar(60)"`
	Unid     string  `gorm:"type:varchar(6)"`
	Qtd      float64 `gorm:"type:decimal(19,3)"`
	VlUnit   float64 `gorm:"type:decimal(19,6)"`
	VlItem   float64 `gorm:"type:decimal(19,2)"`
	IndProp  string  `gorm:"type:varchar(1)"`
	CodPart  string  `gorm:"type:varchar(60)"`
	TxtCompl string
	CodCta   string
	VlItemIr float64   `gorm:"type:decimal(19,2)"`
	DtInv    time.Time `gorm:"type:date"`
	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 H010

func CreateRegH010

func CreateRegH010(read iRegH010) RegH010

Metodo que cria o registro populado generico

func (RegH010) TableName

func (RegH010) TableName() string

Metodo define nome da tabela no banco de dados

type RegH010Sped

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

Implementando Interface do Sped RegH010

func (RegH010Sped) GetRegH010

func (s RegH010Sped) GetRegH010() RegH010

Meotodo que popula o H010 do sped fiscal

Jump to

Keyboard shortcuts

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