Documentation

NotasFiscaisEntity extends Entity
in package

A classe NotasFiscaisEntity representa as notas fiscais já destinadas.

Outra classe relacionada é a NotasNaoVinculadaEntity, que representa as notas fiscais não destinadas. Ao destinar, a NF sai de NotasNaoVinculadaEntity e vai para NotasFiscaisEntity.

Table of Contents

Constants

auditlog  = ['exclude_fields' => ['DataHora']]
Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
COMPRA_ATIVO  = '3'
const_values  = []
database  = \config\Config::DB_DEFAULT
db_table  = 'finan_notas_fiscais'
DOCUMENTO_DIVERSO  = '6'
NOTA_COMPRA_PRODUTO  = '0'
NOTA_COMPRA_SERVICO  = '1'
NOVA_VENDA_PRODUTO  = '2'
pk_field  = 'idNota'
sanitize  = ['danfe' => 'noRules']
security  = ['select' => 'core\EntitySecurity::securitySelect', 'delete' => 'core\EntitySecurity::securityDelete', 'update' => 'core\EntitySecurity::securityUpdate', 'insert' => 'core\EntitySecurity::securityInsert']
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
SERVICO_PUBLICO  = '5'
TIPO_RECIBO  = '4'
tracking  = true
validations  = ['danfe' => ['noRules' => '']]

Properties

$chaveNota  : mixed
$danfe  : mixed
$data  : mixed
$DataHora  : mixed
$DataHoraCienciaNota  : mixed
$DataHoraConfirmacao  : mixed
$DataHoraDownload  : mixed
$DataHoraRecepcaoNota  : mixed
$DataHoraStatus  : mixed
$DataHoraVinculoNota  : mixed
$idAtivo  : mixed
$idCompra  : mixed
$idContaReceber  : mixed
$idContaReceberItem  : mixed
$idContasPagar  : mixed
$idContasPagarItem  : mixed
$idEntidade  : mixed
$idEntidadeFornecedor  : mixed
$idEntrada  : mixed
$idEntradaComb  : mixed
$idNota  : mixed
$idProducao  : mixed
$idUsuario  : mixed
$idVenda  : mixed
$imageNota  : mixed
$linkNota  : mixed
$NSU  : mixed
$numeroNota  : mixed
$obsContabil  : mixed
$obsNotaAvulsa  : mixed
$qtidade  : mixed
$respostaConfirmacao  : mixed
$respostaStatus  : mixed
$statusConfirmacao  : mixed
$statusManifestoUsuario  : mixed
$tipoNota  : mixed
$valorNota  : mixed

Methods

__construct()  : mixed
delete()  : mixed
delete_where()  : mixed
getAuditlog()  : mixed
getChaveNota()  : mixed
Get the value of chaveNota
getConst()  : mixed
getConstObj()  : mixed
getDanfe()  : mixed
Get the value of danfe
getData()  : mixed
Get the value of data
getDatabase()  : mixed
getDataHora()  : mixed
Get the value of DataHora
getDataHoraCienciaNota()  : mixed
Get the value of DataHoraCienciaNota
getDataHoraConfirmacao()  : mixed
Get the value of DataHoraConfirmacao
getDataHoraDownload()  : mixed
Get the value of DataHoraDownload
getDataHoraRecepcaoNota()  : mixed
Get the value of DataHoraRecepcaoNota
getDataHoraStatus()  : mixed
Get the value of DataHoraStatus
getDataHoraVinculoNota()  : mixed
Get the value of DataHoraVinculoNota
getDBDriver()  : mixed
getDBTable()  : mixed
getIdAtivo()  : mixed
Get the value of idAtivo
getIdCompra()  : mixed
Get the value of idCompra
getIdContaReceber()  : mixed
Get the value of idContaReceber
getIdContaReceberItem()  : mixed
Get the value of idContaReceberItem
getIdContasPagar()  : mixed
Get the value of idContasPagar
getIdContasPagarItem()  : mixed
Get the value of idContasPagarItem
getIdEntidade()  : mixed
Get the value of idEntidade
getIdEntidadeFornecedor()  : mixed
Get the value of idEntidadeFornecedor
getIdEntrada()  : mixed
Get the value of idEntrada
getIdEntradaComb()  : mixed
Get the value of idEntradaComb
getIdNota()  : mixed
Get the value of idNota
getIdProducao()  : mixed
Get the value of idProducao
getIdUsuario()  : mixed
Get the value of idUsuario
getIdVenda()  : mixed
Get the value of idVenda
getImageNota()  : mixed
Get the value of imageNota
getLinkNota()  : mixed
Get the value of linkNota
getNSU()  : mixed
Get the value of NSU
getNumeroNota()  : mixed
Get the value of numeroNota
getObsContabil()  : mixed
Get the value of obsContabil
getObsNotaAvulsa()  : mixed
getQtidade()  : mixed
Get the value of qtidade
getRespostaConfirmacao()  : mixed
getRespostaStatus()  : mixed
Get the value of respostaStatus
getStatusConfirmacao()  : mixed
getStatusManifestoUsuario()  : mixed
Get the value of statusManifestoUsuario
getTable()  : mixed
getTipoNota()  : mixed
Get the value of tipoNota
getTipoNotaFromString()  : int
getValorNota()  : mixed
Get the value of valorNota
hasField()  : mixed
insert()  : null|Entity
insert_or_select()  : null|Entity
Funcao que insere ou seleciona se existe
insert_or_update()  : array<string|int, mixed>
Funcao que insere ou atualiza uma entidade no banco de dados
securityDelete()  : bool
securityInsert()  : bool
securitySelect()  : array<string|int, mixed>
securityUpdate()  : bool
setChaveNota()  : self
Set the value of chaveNota
setDanfe()  : self
Set the value of danfe
setData()  : self
Set the value of data
setDataHora()  : self
Set the value of DataHora
setDataHoraCienciaNota()  : self
Set the value of DataHoraCienciaNota
setDataHoraConfirmacao()  : mixed
setDataHoraDownload()  : self
Set the value of DataHoraDownload
setDataHoraRecepcaoNota()  : self
Set the value of DataHoraRecepcaoNota
setDataHoraStatus()  : self
Set the value of DataHoraStatus
setDataHoraVinculoNota()  : self
Set the value of DataHoraVinculoNota
setIdAtivo()  : self
Set the value of idAtivo
setIdCompra()  : self
Set the value of idCompra
setIdContaReceber()  : self
Set the value of idContaReceber
setIdContaReceberItem()  : self
Set the value of idContaReceberItem
setIdContasPagar()  : self
Set the value of idContasPagar
setIdContasPagarItem()  : self
Set the value of idContasPagarItem
setIdEntidade()  : self
Set the value of idEntidade
setIdEntidadeFornecedor()  : self
Set the value of idEntidadeFornecedor
setIdEntrada()  : self
Set the value of idEntrada
setIdEntradaComb()  : self
Set the value of idEntradaComb
setIdNota()  : self
Set the value of idNota
setIdProducao()  : self
Set the value of idProducao
setIdUsuario()  : self
Set the value of idUsuario
setIdVenda()  : self
Set the value of idVenda
setImageNota()  : self
Set the value of imageNota
setLinkNota()  : self
Set the value of linkNota
setNSU()  : self
Set the value of NSU
setNumeroNota()  : self
Set the value of numeroNota
setObsContabil()  : self
Set the value of obsContabil
setObsNotaAvulsa()  : mixed
setQtidade()  : self
Set the value of qtidade
setRespostaConfirmacao()  : mixed
setRespostaStatus()  : self
Set the value of respostaStatus
setStatusConfirmacao()  : mixed
setStatusManifestoUsuario()  : self
Set the value of statusManifestoUsuario
setTipoNota()  : self
Set the value of tipoNota
setValorNota()  : self
Set the value of valorNota
update()  : mixed
A função update pode atualizar uma Entity já instanciada, desde que a chave primária esteja setada, ou pode atualizar uma Entity vazia informando o valor da chave primária no segundo parâmetro (pk_value)
validateFields()  : bool
where()  : Collection
Rudimentary ORM functions

Constants

auditlog

Allowed keys: 'exclude_fields': <...> 'object_rel': <...>

public mixed auditlog = ['exclude_fields' => ['DataHora']]

const_values

public mixed const_values = []

database

public mixed database = \config\Config::DB_DEFAULT

security

Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>

public mixed security = ['select' => 'core\EntitySecurity::securitySelect', 'delete' => 'core\EntitySecurity::securityDelete', 'update' => 'core\EntitySecurity::securityUpdate', 'insert' => 'core\EntitySecurity::securityInsert']

Properties

Methods

__construct()

public __construct([array<string|int, mixed> $values = [] ]) : mixed
Parameters
$values : array<string|int, mixed> = []

delete()

public delete(mixed $motivo) : mixed
Parameters
$motivo : mixed

delete_where()

public static delete_where(mixed $motivo[, mixed $where = [] ]) : mixed
Parameters
$motivo : mixed
$where : mixed = []

getAuditlog()

public getAuditlog([string|null $key = null ]) : mixed
Parameters
$key : string|null = null

getConst()

public static getConst(string $field[, mixed $const_value = null ]) : mixed
Parameters
$field : string
$const_value : mixed = null

getConstObj()

public static getConstObj(string $field[, mixed $const_value = null ]) : mixed
Parameters
$field : string
$const_value : mixed = null

getDatabase()

public getDatabase() : mixed

getDataHoraCienciaNota()

Get the value of DataHoraCienciaNota

public getDataHoraCienciaNota() : mixed

getDataHoraConfirmacao()

Get the value of DataHoraConfirmacao

public getDataHoraConfirmacao() : mixed

getDataHoraDownload()

Get the value of DataHoraDownload

public getDataHoraDownload() : mixed

getDataHoraRecepcaoNota()

Get the value of DataHoraRecepcaoNota

public getDataHoraRecepcaoNota() : mixed

getDataHoraStatus()

Get the value of DataHoraStatus

public getDataHoraStatus() : mixed

getDataHoraVinculoNota()

Get the value of DataHoraVinculoNota

public getDataHoraVinculoNota() : mixed

getDBDriver()

public static getDBDriver() : mixed

getDBTable()

public static getDBTable() : mixed

getIdContaReceber()

Get the value of idContaReceber

public getIdContaReceber() : mixed

getIdContaReceberItem()

Get the value of idContaReceberItem

public getIdContaReceberItem() : mixed

getIdContasPagar()

Get the value of idContasPagar

public getIdContasPagar() : mixed

getIdContasPagarItem()

Get the value of idContasPagarItem

public getIdContasPagarItem() : mixed

getIdEntidadeFornecedor()

Get the value of idEntidadeFornecedor

public getIdEntidadeFornecedor() : mixed

getIdEntradaComb()

Get the value of idEntradaComb

public getIdEntradaComb() : mixed

getRespostaStatus()

Get the value of respostaStatus

public getRespostaStatus() : mixed

getStatusManifestoUsuario()

Get the value of statusManifestoUsuario

public getStatusManifestoUsuario() : mixed

getTable()

public getTable() : mixed

getTipoNotaFromString()

public static getTipoNotaFromString(string $tipo) : int
Parameters
$tipo : string
Return values
int

hasField()

public static hasField(mixed $field) : mixed
Parameters
$field : mixed

insert_or_select()

Funcao que insere ou seleciona se existe

public insert_or_select([mixed $where = [] ]) : null|Entity
Parameters
$where : mixed = []
Return values
null|Entity

insert_or_update()

Funcao que insere ou atualiza uma entidade no banco de dados

public insert_or_update([mixed $where = [] ][, mixed $update_fields = ['*'] ]) : array<string|int, mixed>
Parameters
$where : mixed = []
$update_fields : mixed = ['*']
Return values
array<string|int, mixed>

securityDelete()

public securityDelete(mixed $table, mixed $where) : bool
Parameters
$table : mixed
$where : mixed
Return values
bool

securityInsert()

public securityInsert(mixed $fields) : bool
Parameters
$fields : mixed
Return values
bool

return 'true' if the security function didn't find any security issue and 'false' otherwise

securitySelect()

public securitySelect(mixed $table, mixed $fields, mixed $where) : array<string|int, mixed>
Parameters
$table : mixed
$fields : mixed
$where : mixed
Return values
array<string|int, mixed>

return an array with information to be appended in the SQL select

securityUpdate()

public securityUpdate(mixed $fields, mixed $where) : bool
Parameters
$fields : mixed
$where : mixed
Return values
bool

return 'true' if the security function didn't find any security issue and 'false' otherwise

setChaveNota()

Set the value of chaveNota

public setChaveNota(mixed $chaveNota) : self
Parameters
$chaveNota : mixed
Return values
self

setDanfe()

Set the value of danfe

public setDanfe(mixed $danfe) : self
Parameters
$danfe : mixed
Return values
self

setData()

Set the value of data

public setData(mixed $data) : self
Parameters
$data : mixed
Return values
self

setDataHora()

Set the value of DataHora

public setDataHora(mixed $DataHora) : self
Parameters
$DataHora : mixed
Return values
self

setDataHoraCienciaNota()

Set the value of DataHoraCienciaNota

public setDataHoraCienciaNota(mixed $DataHoraCienciaNota) : self
Parameters
$DataHoraCienciaNota : mixed
Return values
self

setDataHoraConfirmacao()

public setDataHoraConfirmacao(mixed $DataHoraConfirmacao) : mixed
Parameters
$DataHoraConfirmacao : mixed

setDataHoraDownload()

Set the value of DataHoraDownload

public setDataHoraDownload(mixed $DataHoraDownload) : self
Parameters
$DataHoraDownload : mixed
Return values
self

setDataHoraRecepcaoNota()

Set the value of DataHoraRecepcaoNota

public setDataHoraRecepcaoNota(mixed $DataHoraRecepcaoNota) : self
Parameters
$DataHoraRecepcaoNota : mixed
Return values
self

setDataHoraStatus()

Set the value of DataHoraStatus

public setDataHoraStatus(mixed $DataHoraStatus) : self
Parameters
$DataHoraStatus : mixed
Return values
self

setDataHoraVinculoNota()

Set the value of DataHoraVinculoNota

public setDataHoraVinculoNota(mixed $DataHoraVinculoNota) : self
Parameters
$DataHoraVinculoNota : mixed
Return values
self

setIdAtivo()

Set the value of idAtivo

public setIdAtivo(mixed $idAtivo) : self
Parameters
$idAtivo : mixed
Return values
self

setIdCompra()

Set the value of idCompra

public setIdCompra(mixed $idCompra) : self
Parameters
$idCompra : mixed
Return values
self

setIdContaReceber()

Set the value of idContaReceber

public setIdContaReceber(mixed $idContaReceber) : self
Parameters
$idContaReceber : mixed
Return values
self

setIdContaReceberItem()

Set the value of idContaReceberItem

public setIdContaReceberItem(mixed $idContaReceberItem) : self
Parameters
$idContaReceberItem : mixed
Return values
self

setIdContasPagar()

Set the value of idContasPagar

public setIdContasPagar(mixed $idContasPagar) : self
Parameters
$idContasPagar : mixed
Return values
self

setIdContasPagarItem()

Set the value of idContasPagarItem

public setIdContasPagarItem(mixed $idContasPagarItem) : self
Parameters
$idContasPagarItem : mixed
Return values
self

setIdEntidade()

Set the value of idEntidade

public setIdEntidade(mixed $idEntidade) : self
Parameters
$idEntidade : mixed
Return values
self

setIdEntidadeFornecedor()

Set the value of idEntidadeFornecedor

public setIdEntidadeFornecedor(mixed $idEntidadeFornecedor) : self
Parameters
$idEntidadeFornecedor : mixed
Return values
self

setIdEntrada()

Set the value of idEntrada

public setIdEntrada(mixed $idEntrada) : self
Parameters
$idEntrada : mixed
Return values
self

setIdEntradaComb()

Set the value of idEntradaComb

public setIdEntradaComb(mixed $idEntradaComb) : self
Parameters
$idEntradaComb : mixed
Return values
self

setIdNota()

Set the value of idNota

public setIdNota(mixed $idNota) : self
Parameters
$idNota : mixed
Return values
self

setIdProducao()

Set the value of idProducao

public setIdProducao(mixed $idProducao) : self
Parameters
$idProducao : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

public setIdUsuario(mixed $idUsuario) : self
Parameters
$idUsuario : mixed
Return values
self

setIdVenda()

Set the value of idVenda

public setIdVenda(mixed $idVenda) : self
Parameters
$idVenda : mixed
Return values
self

setImageNota()

Set the value of imageNota

public setImageNota(mixed $imageNota) : self
Parameters
$imageNota : mixed
Return values
self

setLinkNota()

Set the value of linkNota

public setLinkNota(mixed $linkNota) : self
Parameters
$linkNota : mixed
Return values
self

setNSU()

Set the value of NSU

public setNSU(mixed $NSU) : self
Parameters
$NSU : mixed
Return values
self

setNumeroNota()

Set the value of numeroNota

public setNumeroNota(mixed $numeroNota) : self
Parameters
$numeroNota : mixed
Return values
self

setObsContabil()

Set the value of obsContabil

public setObsContabil(mixed $obsContabil) : self
Parameters
$obsContabil : mixed
Return values
self

setObsNotaAvulsa()

public setObsNotaAvulsa(mixed $obsNotaAvulsa) : mixed
Parameters
$obsNotaAvulsa : mixed

setQtidade()

Set the value of qtidade

public setQtidade(mixed $qtidade) : self
Parameters
$qtidade : mixed
Return values
self

setRespostaConfirmacao()

public setRespostaConfirmacao(mixed $respostaConfirmacao) : mixed
Parameters
$respostaConfirmacao : mixed

setRespostaStatus()

Set the value of respostaStatus

public setRespostaStatus(mixed $respostaStatus) : self
Parameters
$respostaStatus : mixed
Return values
self

setStatusConfirmacao()

public setStatusConfirmacao(mixed $statusConfirmacao) : mixed
Parameters
$statusConfirmacao : mixed

setStatusManifestoUsuario()

Set the value of statusManifestoUsuario

public setStatusManifestoUsuario(mixed $statusManifestoUsuario) : self
Parameters
$statusManifestoUsuario : mixed
Return values
self

setTipoNota()

Set the value of tipoNota

public setTipoNota(mixed $tipoNota) : self
Parameters
$tipoNota : mixed
Return values
self

setValorNota()

Set the value of valorNota

public setValorNota(mixed $valorNota) : self
Parameters
$valorNota : mixed
Return values
self

update()

A função update pode atualizar uma Entity já instanciada, desde que a chave primária esteja setada, ou pode atualizar uma Entity vazia informando o valor da chave primária no segundo parâmetro (pk_value)

public update(array<string|int, mixed> $values[, mixed $pk_value = null ]) : mixed
Parameters
$values : array<string|int, mixed>
$pk_value : mixed = null

validateFields()

public validateFields([array<string|int, mixed> $fields = [] ]) : bool
Parameters
$fields : array<string|int, mixed> = []
Return values
bool

where()

Rudimentary ORM functions

public static where([mixed $where = [] ][, mixed $select = '*' ]) : Collection
Parameters
$where : mixed = []
$select : mixed = '*'
Return values
Collection

        
On this page

Search results