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']]
COMPRA_ATIVO
public
mixed
COMPRA_ATIVO
= '3'
const_values
public
mixed
const_values
= []
database
public
mixed
database
= \config\Config::DB_DEFAULT
db_table
public
mixed
db_table
= 'finan_notas_fiscais'
DOCUMENTO_DIVERSO
public
mixed
DOCUMENTO_DIVERSO
= '6'
NOTA_COMPRA_PRODUTO
public
mixed
NOTA_COMPRA_PRODUTO
= '0'
NOTA_COMPRA_SERVICO
public
mixed
NOTA_COMPRA_SERVICO
= '1'
NOVA_VENDA_PRODUTO
public
mixed
NOVA_VENDA_PRODUTO
= '2'
pk_field
public
mixed
pk_field
= 'idNota'
sanitize
public
mixed
sanitize
= ['danfe' => 'noRules']
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']
SERVICO_PUBLICO
public
mixed
SERVICO_PUBLICO
= '5'
TIPO_RECIBO
public
mixed
TIPO_RECIBO
= '4'
tracking
public
mixed
tracking
= true
validations
public
mixed
validations
= ['danfe' => ['noRules' => '']]
Properties
$chaveNota
private
mixed
$chaveNota
$danfe
private
mixed
$danfe
$data
private
mixed
$data
$DataHora
private
mixed
$DataHora
$DataHoraCienciaNota
private
mixed
$DataHoraCienciaNota
$DataHoraConfirmacao
private
mixed
$DataHoraConfirmacao
$DataHoraDownload
private
mixed
$DataHoraDownload
$DataHoraRecepcaoNota
private
mixed
$DataHoraRecepcaoNota
$DataHoraStatus
private
mixed
$DataHoraStatus
$DataHoraVinculoNota
private
mixed
$DataHoraVinculoNota
$idAtivo
private
mixed
$idAtivo
$idCompra
private
mixed
$idCompra
$idContaReceber
private
mixed
$idContaReceber
$idContaReceberItem
private
mixed
$idContaReceberItem
$idContasPagar
private
mixed
$idContasPagar
$idContasPagarItem
private
mixed
$idContasPagarItem
$idEntidade
private
mixed
$idEntidade
$idEntidadeFornecedor
private
mixed
$idEntidadeFornecedor
$idEntrada
private
mixed
$idEntrada
$idEntradaComb
private
mixed
$idEntradaComb
$idNota
private
mixed
$idNota
$idProducao
private
mixed
$idProducao
$idUsuario
private
mixed
$idUsuario
$idVenda
private
mixed
$idVenda
$imageNota
private
mixed
$imageNota
$linkNota
private
mixed
$linkNota
$NSU
private
mixed
$NSU
$numeroNota
private
mixed
$numeroNota
$obsContabil
private
mixed
$obsContabil
$obsNotaAvulsa
private
mixed
$obsNotaAvulsa
$qtidade
private
mixed
$qtidade
$respostaConfirmacao
private
mixed
$respostaConfirmacao
$respostaStatus
private
mixed
$respostaStatus
$statusConfirmacao
private
mixed
$statusConfirmacao
$statusManifestoUsuario
private
mixed
$statusManifestoUsuario
$tipoNota
private
mixed
$tipoNota
$valorNota
private
mixed
$valorNota
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
getChaveNota()
Get the value of chaveNota
public
getChaveNota() : mixed
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
getDanfe()
Get the value of danfe
public
getDanfe() : mixed
getData()
Get the value of data
public
getData() : mixed
getDatabase()
public
getDatabase() : mixed
getDataHora()
Get the value of DataHora
public
getDataHora() : 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
getIdAtivo()
Get the value of idAtivo
public
getIdAtivo() : mixed
getIdCompra()
Get the value of idCompra
public
getIdCompra() : 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
getIdEntidade()
Get the value of idEntidade
public
getIdEntidade() : mixed
getIdEntidadeFornecedor()
Get the value of idEntidadeFornecedor
public
getIdEntidadeFornecedor() : mixed
getIdEntrada()
Get the value of idEntrada
public
getIdEntrada() : mixed
getIdEntradaComb()
Get the value of idEntradaComb
public
getIdEntradaComb() : mixed
getIdNota()
Get the value of idNota
public
getIdNota() : mixed
getIdProducao()
Get the value of idProducao
public
getIdProducao() : mixed
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getIdVenda()
Get the value of idVenda
public
getIdVenda() : mixed
getImageNota()
Get the value of imageNota
public
getImageNota() : mixed
getLinkNota()
Get the value of linkNota
public
getLinkNota() : mixed
getNSU()
Get the value of NSU
public
getNSU() : mixed
getNumeroNota()
Get the value of numeroNota
public
getNumeroNota() : mixed
getObsContabil()
Get the value of obsContabil
public
getObsContabil() : mixed
getObsNotaAvulsa()
public
getObsNotaAvulsa() : mixed
getQtidade()
Get the value of qtidade
public
getQtidade() : mixed
getRespostaConfirmacao()
public
getRespostaConfirmacao() : mixed
getRespostaStatus()
Get the value of respostaStatus
public
getRespostaStatus() : mixed
getStatusConfirmacao()
public
getStatusConfirmacao() : mixed
getStatusManifestoUsuario()
Get the value of statusManifestoUsuario
public
getStatusManifestoUsuario() : mixed
getTable()
public
getTable() : mixed
getTipoNota()
Get the value of tipoNota
public
getTipoNota() : mixed
getTipoNotaFromString()
public
static getTipoNotaFromString(string $tipo) : int
Parameters
- $tipo : string
Return values
intgetValorNota()
Get the value of valorNota
public
getValorNota() : mixed
hasField()
public
static hasField(mixed $field) : mixed
Parameters
- $field : mixed
insert()
public
insert() : null|Entity
Return values
null|Entityinsert_or_select()
Funcao que insere ou seleciona se existe
public
insert_or_select([mixed $where = [] ]) : null|Entity
Parameters
- $where : mixed = []
Return values
null|Entityinsert_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
boolsecurityInsert()
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
selfsetDanfe()
Set the value of danfe
public
setDanfe(mixed $danfe) : self
Parameters
- $danfe : mixed
Return values
selfsetData()
Set the value of data
public
setData(mixed $data) : self
Parameters
- $data : mixed
Return values
selfsetDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetDataHoraCienciaNota()
Set the value of DataHoraCienciaNota
public
setDataHoraCienciaNota(mixed $DataHoraCienciaNota) : self
Parameters
- $DataHoraCienciaNota : mixed
Return values
selfsetDataHoraConfirmacao()
public
setDataHoraConfirmacao(mixed $DataHoraConfirmacao) : mixed
Parameters
- $DataHoraConfirmacao : mixed
setDataHoraDownload()
Set the value of DataHoraDownload
public
setDataHoraDownload(mixed $DataHoraDownload) : self
Parameters
- $DataHoraDownload : mixed
Return values
selfsetDataHoraRecepcaoNota()
Set the value of DataHoraRecepcaoNota
public
setDataHoraRecepcaoNota(mixed $DataHoraRecepcaoNota) : self
Parameters
- $DataHoraRecepcaoNota : mixed
Return values
selfsetDataHoraStatus()
Set the value of DataHoraStatus
public
setDataHoraStatus(mixed $DataHoraStatus) : self
Parameters
- $DataHoraStatus : mixed
Return values
selfsetDataHoraVinculoNota()
Set the value of DataHoraVinculoNota
public
setDataHoraVinculoNota(mixed $DataHoraVinculoNota) : self
Parameters
- $DataHoraVinculoNota : mixed
Return values
selfsetIdAtivo()
Set the value of idAtivo
public
setIdAtivo(mixed $idAtivo) : self
Parameters
- $idAtivo : mixed
Return values
selfsetIdCompra()
Set the value of idCompra
public
setIdCompra(mixed $idCompra) : self
Parameters
- $idCompra : mixed
Return values
selfsetIdContaReceber()
Set the value of idContaReceber
public
setIdContaReceber(mixed $idContaReceber) : self
Parameters
- $idContaReceber : mixed
Return values
selfsetIdContaReceberItem()
Set the value of idContaReceberItem
public
setIdContaReceberItem(mixed $idContaReceberItem) : self
Parameters
- $idContaReceberItem : mixed
Return values
selfsetIdContasPagar()
Set the value of idContasPagar
public
setIdContasPagar(mixed $idContasPagar) : self
Parameters
- $idContasPagar : mixed
Return values
selfsetIdContasPagarItem()
Set the value of idContasPagarItem
public
setIdContasPagarItem(mixed $idContasPagarItem) : self
Parameters
- $idContasPagarItem : mixed
Return values
selfsetIdEntidade()
Set the value of idEntidade
public
setIdEntidade(mixed $idEntidade) : self
Parameters
- $idEntidade : mixed
Return values
selfsetIdEntidadeFornecedor()
Set the value of idEntidadeFornecedor
public
setIdEntidadeFornecedor(mixed $idEntidadeFornecedor) : self
Parameters
- $idEntidadeFornecedor : mixed
Return values
selfsetIdEntrada()
Set the value of idEntrada
public
setIdEntrada(mixed $idEntrada) : self
Parameters
- $idEntrada : mixed
Return values
selfsetIdEntradaComb()
Set the value of idEntradaComb
public
setIdEntradaComb(mixed $idEntradaComb) : self
Parameters
- $idEntradaComb : mixed
Return values
selfsetIdNota()
Set the value of idNota
public
setIdNota(mixed $idNota) : self
Parameters
- $idNota : mixed
Return values
selfsetIdProducao()
Set the value of idProducao
public
setIdProducao(mixed $idProducao) : self
Parameters
- $idProducao : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetIdVenda()
Set the value of idVenda
public
setIdVenda(mixed $idVenda) : self
Parameters
- $idVenda : mixed
Return values
selfsetImageNota()
Set the value of imageNota
public
setImageNota(mixed $imageNota) : self
Parameters
- $imageNota : mixed
Return values
selfsetLinkNota()
Set the value of linkNota
public
setLinkNota(mixed $linkNota) : self
Parameters
- $linkNota : mixed
Return values
selfsetNSU()
Set the value of NSU
public
setNSU(mixed $NSU) : self
Parameters
- $NSU : mixed
Return values
selfsetNumeroNota()
Set the value of numeroNota
public
setNumeroNota(mixed $numeroNota) : self
Parameters
- $numeroNota : mixed
Return values
selfsetObsContabil()
Set the value of obsContabil
public
setObsContabil(mixed $obsContabil) : self
Parameters
- $obsContabil : mixed
Return values
selfsetObsNotaAvulsa()
public
setObsNotaAvulsa(mixed $obsNotaAvulsa) : mixed
Parameters
- $obsNotaAvulsa : mixed
setQtidade()
Set the value of qtidade
public
setQtidade(mixed $qtidade) : self
Parameters
- $qtidade : mixed
Return values
selfsetRespostaConfirmacao()
public
setRespostaConfirmacao(mixed $respostaConfirmacao) : mixed
Parameters
- $respostaConfirmacao : mixed
setRespostaStatus()
Set the value of respostaStatus
public
setRespostaStatus(mixed $respostaStatus) : self
Parameters
- $respostaStatus : mixed
Return values
selfsetStatusConfirmacao()
public
setStatusConfirmacao(mixed $statusConfirmacao) : mixed
Parameters
- $statusConfirmacao : mixed
setStatusManifestoUsuario()
Set the value of statusManifestoUsuario
public
setStatusManifestoUsuario(mixed $statusManifestoUsuario) : self
Parameters
- $statusManifestoUsuario : mixed
Return values
selfsetTipoNota()
Set the value of tipoNota
public
setTipoNota(mixed $tipoNota) : self
Parameters
- $tipoNota : mixed
Return values
selfsetValorNota()
Set the value of valorNota
public
setValorNota(mixed $valorNota) : self
Parameters
- $valorNota : mixed
Return values
selfupdate()
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
boolwhere()
Rudimentary ORM functions
public
static where([mixed $where = [] ][, mixed $select = '*' ]) : Collection
Parameters
- $where : mixed = []
- $select : mixed = '*'