Controller

package
v0.0.0-...-e079bd9 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: MIT Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteArquivoVazio

func DeleteArquivoVazio(arquivo string)

func ProcessarCteProc

func ProcessarCteProc(file []byte) (pathArquivo string, cte Model.CteProc)

func ProcessarEventoCte

func ProcessarEventoCte(file []byte) (pathArquivo string, procEventoCte Model.ProcEventoCTe)

func ProcessarEventoNfe

func ProcessarEventoNfe(file []byte) (pathArquivo string, procEventoNfe Model.ProcEventoNFe)

ProcessarEventoNfe : Funcao responsavel por analisar xml de evento e retornar o path destinado

func ProcessarNfeProcNfeProc

func ProcessarNfeProcNfeProc(file []byte) (pathArquivo string, nota Model.NfeProc)

func ProcessarNfeProcValido

func ProcessarNfeProcValido(file []byte) (pathArquivo string, nota Model.NfeProc)

ProcessarNfeProcValido : Funcao responsavel separar variaveis e retornar path e model

func ProcessarNfeSemProcValido

func ProcessarNfeSemProcValido(file []byte) (pathArquivo string, nota Model.NFe)

ProcessarNfeSemProcValido : Responsavel por executar estrutura de pastas e retornar o novo path do arquivo

func ProcessarNfeSemValidade

func ProcessarNfeSemValidade(file []byte) (pathArquivo string, nota2 Model.NFe)

ProcessarNfeSemValidade : Responsavel por executar estrutura de pastas dos xmls sem validade e retorna o path do arquivo

func ProcessarPathSped

func ProcessarPathSped(reg0000 Model.Reg0000) (pathArquivo string)

func ProcessarResEvento

func ProcessarResEvento(file []byte) (pathArquivo string, resEvento Model.ResEvento)

func ProcessarRetornoNfeInutilizada

func ProcessarRetornoNfeInutilizada(file []byte) (pathArquivo string, inutilizada Model.RetInutNfe)

ProcessarRetornoNfeInutilizada : Funcao responsavel por analisar xml de retorno inutilizado e retornar o path detinado

func ProcessarXmls

func ProcessarXmls(arquivo string, conn *bongo.Connection)

ProcessarXmls : Funcao responsavel por verificar o que contem e mandar para o destino correto

func TransformarXmlEmByte

func TransformarXmlEmByte(arquivo string) (b []byte)

TransformarXmlEmByte : Funcao responsavel por receber path do arquivo xml e retornar em byte

Types

type ImportController

type ImportController struct {
	// contains filtered or unexported fields
}

ImportController : Responsavel por separar e executar os comandos nos arquivos txt, csv e xml

func (*ImportController) Importar

func (i *ImportController) Importar(path string, conn *bongo.Connection)

Importar : metodo responsavel pela separacao dos arquivos

type RegC100Controller

type RegC100Controller struct {
	// contains filtered or unexported fields
}

RegC100Controller : Responsavel por fazer validacoes no registro C100 do sped

func (*RegC100Controller) VerificarChave

func (c *RegC100Controller) VerificarChave(c100 Model.RegC100) string

VerificarChave : Analisa se a nota nao é inutilizada o modelo é 55 e se a chave está vazia e retorna o erro de chave nao informada

func (*RegC100Controller) VerificarDtEmissaoChave

func (c *RegC100Controller) VerificarDtEmissaoChave(c100 Model.RegC100) string

VerificarDtEmissaoChave : Analisa se a nota tem status normal

type SpedController

type SpedController struct {
	// contains filtered or unexported fields
}

SpedController : Responsavel por adicionar os dados do sped e validar o conteudo

Jump to

Keyboard shortcuts

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