NotaFiscal

package
v0.0.0-...-3511d02 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Destinatario

type Destinatario struct {
	gorm.Model
	CNPJ    string
	XNome   string
	XLgr    string
	Nro     string
	XCpl    string
	XBairro string
	CMun    string
	XMun    string
	Uf      string
	Cep     string
	CPais   string
	XPais   string
	Fone    string
	Ie      string
}

Cadastro Destinatario referente aos campos da nota fiscal

type Emitente

type Emitente struct {
	gorm.Model
	CNPJ    string
	XNome   string
	XLgr    string
	Nro     string
	XCpl    string
	XBairro string
	CMun    string
	XMun    string
	Uf      string
	Cep     string
	CPais   string
	XPais   string
	Fone    string
	Ie      string
}

Cadastro Emitente referente aos campos da nota fiscal

type Item

type Item struct {
	gorm.Model
	Codigo    string    `gorm:"type:varchar(60)"`
	Ean       string    `gorm:"type:varchar(60)"`
	Descricao string    `gorm:"type:varchar(100)"`
	Ncm       string    `gorm:"type:varchar(60)"`
	Cfop      string    `gorm:"type:varchar(60)"`
	Unid      string    `gorm:"type:varchar(60)"`
	Qtd       float64   `gorm:"type:decimal(19,3)"`
	VUnit     float64   `gorm:"type:decimal(19,3)"`
	VTotal    float64   `gorm:"type:decimal(19,3)"`
	DtEmit    time.Time `gorm:"type:date"`

	//ICMS
	IcmsModBC int
	IcmsCST   int
	IcmsVBC   float64 `gorm:"type:decimal(19,3)"`
	IcmsPerc  float64 `gorm:"type:decimal(19,3)"`
	IcmsVal   float64 `gorm:"type:decimal(19,3)"`

	//PIS
	PisCST  int
	PisVBC  float64 `gorm:"type:decimal(19,3)"`
	PisPerc float64 `gorm:"type:decimal(19,3)"`
	PisVal  float64 `gorm:"type:decimal(19,3)"`

	//COFINS
	CofinsCST  int
	CofinsVBC  float64 `gorm:"type:decimal(19,3)"`
	CofinsPerc float64 `gorm:"type:decimal(19,3)"`
	CofinsVal  float64 `gorm:"type:decimal(19,3)"`

	NotaFiscalID uint
}

Cadastro Itens referente aos campos da nota fiscal

type NotaFiscal

type NotaFiscal struct {
	gorm.Model
	NNF            string
	ChNFe          string
	NatOp          string
	IndPag         string
	Mod            string
	Serie          string
	DEmi           time.Time
	TpNF           string
	TpImp          string
	TpEmis         string
	CDV            string
	TpAmb          string
	FinNFe         string
	ProcEmi        string
	Emitente       Emitente
	EmitenteID     int
	Destinatario   Destinatario
	DestinatarioID int

	//ICMSTot
	ICMSTotVBC        float64 `gorm:"type:decimal(19,3)"`
	ICMSTotVICMS      float64 `gorm:"type:decimal(19,3)"`
	ICMSTotVICMSDeson float64 `gorm:"type:decimal(19,3)"`
	ICMSTotVBCST      float64 `gorm:"type:decimal(19,3)"`
	ICMSTotVST        float64 `gorm:"type:decimal(19,3)"`
	ICMSTotVProd      float64 `gorm:"type:decimal(19,3)"`
	ICMSTotVFrete     float64 `gorm:"type:decimal(19,3)"`
	ICMSTotVSeg       float64 `gorm:"type:decimal(19,3)"`
	ICMSTotVDesc      float64 `gorm:"type:decimal(19,3)"`
	ICMSTotVII        float64 `gorm:"type:decimal(19,3)"`
	ICMSTotVIPI       float64 `gorm:"type:decimal(19,3)"`
	ICMSTotVPIS       float64 `gorm:"type:decimal(19,3)"`
	ICMSTotVOutro     float64 `gorm:"type:decimal(19,3)"`
	ICMSTotVCOFINS    float64 `gorm:"type:decimal(19,3)"`
	ICMSTotVNF        float64 `gorm:"type:decimal(19,3)"`
	ICMSTotVTotTrib   float64 `gorm:"type:decimal(19,3)"`

	Itens []Item
}

Estrutura da nota fiscal eletronica

Jump to

Keyboard shortcuts

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