NotaFiscal

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: 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"`
	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
	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