Documentation

ProcessoVendaEntity extends Entity
in package

Table of Contents

Constants

auditlog  = ['exclude_fields' => ['DataHora'], 'object_rel' => 'idProdutoVenda']
Allowed keys: 'exclude_fields': <...> 'object_rel': <...>
const_values  = []
database  = \config\Config::DB_DEFAULT
db_table  = 'cad_produtos_venda'
pk_field  = 'idProdutoVenda'
sanitize  = []
security  = []
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
tracking  = true
validations  = ['data' => ['required' => 'O campo Data Venda é requerido.'], 'anoAgricolaSafra' => ['required' => 'O campo Ano Agrícola Safra é requerido.'], 'idEntidade' => ['required' => 'O campo Cliente é requerido.'], 'statusEntregue' => ['required' => 'O campo Status Entregue é requerido.'], 'tipoVenda' => ['required' => 'O campo Tipo Venda é requerido.'], 'qtidadeTotalVendida' => ['required' => 'O campo Quantidade Total é requerido.'], 'valorTotalVenda' => ['required' => 'O campo Valor Total é requerido.'], 'idNegocio' => ['required' => 'O campo Atividade é requerido.'], 'idUnidadeNegocio' => ['required' => 'O campo Unidade de Negócio é requerido.'], 'idEntidadeProdutor' => ['required' => 'O campo Produtor é requerido.'], 'opcaoVenda' => ['required' => 'O campo Venda de Produto é requerido.'], 'idMoeda' => ['required' => 'O campo Moeda do Contrato é requerido.']]

Properties

$anoAgricolaSafra  : mixed
$data  : mixed
$dataEntregue  : mixed
$DataHora  : mixed
$dataVectoFutura  : mixed
$dolarTravado  : mixed
$idContaReceber  : mixed
$idCotacaoMoeda  : mixed
$idDepartamento  : mixed
$idEntidade  : mixed
$idEntidadeCorretor  : mixed
$idEntidadeProdutor  : mixed
$idFazenda  : mixed
$idMoeda  : mixed
$idNegocio  : mixed
$idProdutoVenda  : mixed
$idTipoPagamento  : mixed
$idUnidadeNegocio  : mixed
$idUsuario  : mixed
$nomeCorretor  : mixed
$numeroContrato  : mixed
$obs  : mixed
$opcaoVenda  : mixed
$qtidadeTotalVendida  : mixed
$qtidadeVendaLote  : mixed
$relacionamentoPagar  : mixed
$statusEntregue  : mixed
$statusVenda  : mixed
$tipoVenda  : mixed
$totalAnexo  : mixed
$valorComissao  : mixed
$valorCotacao  : mixed
$valorDesconto  : mixed
$valorEmbalagens  : mixed
$valorFunrural  : mixed
$valorMoeda  : mixed
$valorOutrasDespesas  : mixed
$valorSeguro  : mixed
$valorTotal  : mixed
$valorTotalVenda  : mixed
$valorUnitario  : mixed

Methods

__construct()  : mixed
delete()  : mixed
delete_where()  : mixed
getAnoAgricolaSafra()  : mixed
Get the value of anoAgricolaSafra
getAuditlog()  : mixed
getConst()  : mixed
getConstObj()  : mixed
getData()  : mixed
Get the value of data
getDatabase()  : mixed
getDataEntregue()  : mixed
Get the value of dataEntregue
getDataHora()  : mixed
Get the value of DataHora
getDataVectoFutura()  : mixed
Get the value of dataVectoFutura
getDBDriver()  : mixed
getDBTable()  : mixed
getDolarTravado()  : mixed
Get the value of dolarTravado
getIdContaReceber()  : mixed
Get the value of idContaReceber
getIdCotacaoMoeda()  : mixed
Get the value of idCotacaoMoeda
getIdDepartamento()  : mixed
Get the value of idDepartamento
getIdEntidade()  : mixed
Get the value of idEntidade
getIdEntidadeCorretor()  : mixed
Get the value of idEntidadeCorretor
getIdEntidadeProdutor()  : mixed
Get the value of idEntidadeProdutor
getIdFazenda()  : mixed
Get the value of idFazenda
getIdMoeda()  : mixed
Get the value of idMoeda
getIdNegocio()  : mixed
Get the value of idNegocio
getIdProdutoVenda()  : mixed
Get the value of idProdutoVenda
getIdTipoPagamento()  : mixed
Get the value of idTipoPagamento
getIdUnidadeNegocio()  : mixed
Get the value of idUnidadeNegocio
getIdUsuario()  : mixed
Get the value of idUsuario
getNomeCorretor()  : mixed
Get the value of nomeCorretor
getNumeroContrato()  : mixed
Get the value of numeroContrato
getObs()  : mixed
Get the value of obs
getOpcaoVenda()  : mixed
Get the value of opcaoVenda
getQtidadeTotalVendida()  : mixed
Get the value of qtidadeTotalVendida
getQtidadeVendaLote()  : mixed
Get the value of qtidadeVendaLote
getRelacionamentoPagar()  : mixed
Get the value of relacionamentoPagar
getStatusEntregue()  : mixed
Get the value of statusEntregue
getstatusVenda()  : mixed
Get the value of statusVenda
getTable()  : mixed
getTipoVenda()  : mixed
Get the value of tipoVenda
getTotalAnexo()  : mixed
Get the value of totalAnexo
getValorComissao()  : mixed
Get the value of valorComissao
getValorCotacao()  : mixed
Get the value of valorCotacao
getValorDesconto()  : mixed
Get the value of valorDesconto
getValorEmbalagens()  : mixed
Get the value of valorEmbalagens
getValorFunrural()  : mixed
Get the value of valorFunrural
getValorMoeda()  : mixed
Get the value of valorMoeda
getValorOutrasDespesas()  : mixed
Get the value of valorOutrasDespesas
getValorSeguro()  : mixed
Get the value of valorSeguro
getValorTotal()  : mixed
Get the value of valorTotal
getValorTotalVenda()  : mixed
Get the value of valorTotalVenda
getValorUnitario()  : mixed
Get the value of valorUnitario
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
setAnoAgricolaSafra()  : self
Set the value of anoAgricolaSafra
setData()  : self
Set the value of data
setDataEntregue()  : self
Set the value of dataEntregue
setDataHora()  : self
Set the value of DataHora
setDataVectoFutura()  : self
Set the value of dataVectoFutura
setDolarTravado()  : self
Set the value of dolarTravado
setIdContaReceber()  : self
Set the value of idContaReceber
setIdCotacaoMoeda()  : self
Set the value of idCotacaoMoeda
setIdDepartamento()  : self
Set the value of idDepartamento
setIdEntidade()  : self
Set the value of idEntidade
setIdEntidadeCorretor()  : self
Set the value of idEntidadeCorretor
setIdEntidadeProdutor()  : self
Set the value of idEntidadeProdutor
setIdFazenda()  : self
Set the value of idFazenda
setIdMoeda()  : self
Set the value of idMoeda
setIdNegocio()  : self
Set the value of idNegocio
setIdProdutoVenda()  : self
Set the value of idProdutoVenda
setIdTipoPagamento()  : self
Set the value of idTipoPagamento
setIdUnidadeNegocio()  : self
Set the value of idUnidadeNegocio
setIdUsuario()  : self
Set the value of idUsuario
setNomeCorretor()  : self
Set the value of nomeCorretor
setNumeroContrato()  : self
Set the value of numeroContrato
setObs()  : self
Set the value of obs
setOpcaoVenda()  : self
Set the value of opcaoVenda
setQtidadeTotalVendida()  : self
Set the value of qtidadeTotalVendida
setQtidadeVendaLote()  : self
Set the value of qtidadeVendaLote
setRelacionamentoPagar()  : self
Set the value of relacionamentoPagar
setStatusEntregue()  : self
Set the value of statusEntregue
setstatusVenda()  : self
Set the value of statusVenda
setTipoVenda()  : self
Set the value of tipoVenda
setTotalAnexo()  : self
Set the value of totalAnexo
setValorComissao()  : self
Set the value of valorComissao
setValorCotacao()  : self
Set the value of valorCotacao
setValorDesconto()  : self
Set the value of valorDesconto
setValorEmbalagens()  : self
Set the value of valorEmbalagens
setValorFunrural()  : self
Set the value of valorFunrural
setValorMoeda()  : self
Set the value of valorMoeda
setValorOutrasDespesas()  : self
Set the value of valorOutrasDespesas
setValorSeguro()  : self
Set the value of valorSeguro
setValorTotal()  : self
Set the value of valorTotal
setValorTotalVenda()  : self
Set the value of valorTotalVenda
setValorUnitario()  : self
Set the value of valorUnitario
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'], 'object_rel' => 'idProdutoVenda']

const_values

public mixed const_values = []

database

public mixed database = \config\Config::DB_DEFAULT

security

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

public mixed security = []

validations

public mixed validations = ['data' => ['required' => 'O campo Data Venda é requerido.'], 'anoAgricolaSafra' => ['required' => 'O campo Ano Agrícola Safra é requerido.'], 'idEntidade' => ['required' => 'O campo Cliente é requerido.'], 'statusEntregue' => ['required' => 'O campo Status Entregue é requerido.'], 'tipoVenda' => ['required' => 'O campo Tipo Venda é requerido.'], 'qtidadeTotalVendida' => ['required' => 'O campo Quantidade Total é requerido.'], 'valorTotalVenda' => ['required' => 'O campo Valor Total é requerido.'], 'idNegocio' => ['required' => 'O campo Atividade é requerido.'], 'idUnidadeNegocio' => ['required' => 'O campo Unidade de Negócio é requerido.'], 'idEntidadeProdutor' => ['required' => 'O campo Produtor é requerido.'], 'opcaoVenda' => ['required' => 'O campo Venda de Produto é requerido.'], 'idMoeda' => ['required' => 'O campo Moeda do Contrato é requerido.']]

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 = []

getAnoAgricolaSafra()

Get the value of anoAgricolaSafra

public getAnoAgricolaSafra() : 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

getDataVectoFutura()

Get the value of dataVectoFutura

public getDataVectoFutura() : mixed

getDBDriver()

public static getDBDriver() : mixed

getDBTable()

public static getDBTable() : mixed

getIdContaReceber()

Get the value of idContaReceber

public getIdContaReceber() : mixed

getIdCotacaoMoeda()

Get the value of idCotacaoMoeda

public getIdCotacaoMoeda() : mixed

getIdDepartamento()

Get the value of idDepartamento

public getIdDepartamento() : mixed

getIdEntidadeCorretor()

Get the value of idEntidadeCorretor

public getIdEntidadeCorretor() : mixed

getIdEntidadeProdutor()

Get the value of idEntidadeProdutor

public getIdEntidadeProdutor() : mixed

getIdProdutoVenda()

Get the value of idProdutoVenda

public getIdProdutoVenda() : mixed

getIdTipoPagamento()

Get the value of idTipoPagamento

public getIdTipoPagamento() : mixed

getIdUnidadeNegocio()

Get the value of idUnidadeNegocio

public getIdUnidadeNegocio() : mixed

getNumeroContrato()

Get the value of numeroContrato

public getNumeroContrato() : mixed

getQtidadeTotalVendida()

Get the value of qtidadeTotalVendida

public getQtidadeTotalVendida() : mixed

getQtidadeVendaLote()

Get the value of qtidadeVendaLote

public getQtidadeVendaLote() : mixed

getRelacionamentoPagar()

Get the value of relacionamentoPagar

public getRelacionamentoPagar() : mixed

getStatusEntregue()

Get the value of statusEntregue

public getStatusEntregue() : mixed

getTable()

public getTable() : mixed

getValorComissao()

Get the value of valorComissao

public getValorComissao() : mixed

getValorDesconto()

Get the value of valorDesconto

public getValorDesconto() : mixed

getValorEmbalagens()

Get the value of valorEmbalagens

public getValorEmbalagens() : mixed

getValorFunrural()

Get the value of valorFunrural

public getValorFunrural() : mixed

getValorOutrasDespesas()

Get the value of valorOutrasDespesas

public getValorOutrasDespesas() : mixed

getValorTotalVenda()

Get the value of valorTotalVenda

public getValorTotalVenda() : mixed

getValorUnitario()

Get the value of valorUnitario

public getValorUnitario() : mixed

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

setAnoAgricolaSafra()

Set the value of anoAgricolaSafra

public setAnoAgricolaSafra(mixed $anoAgricolaSafra) : self
Parameters
$anoAgricolaSafra : mixed
Return values
self

setData()

Set the value of data

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

setDataEntregue()

Set the value of dataEntregue

public setDataEntregue(mixed $dataEntregue) : self
Parameters
$dataEntregue : mixed
Return values
self

setDataHora()

Set the value of DataHora

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

setDataVectoFutura()

Set the value of dataVectoFutura

public setDataVectoFutura(mixed $dataVectoFutura) : self
Parameters
$dataVectoFutura : mixed
Return values
self

setDolarTravado()

Set the value of dolarTravado

public setDolarTravado(mixed $dolarTravado) : self
Parameters
$dolarTravado : mixed
Return values
self

setIdContaReceber()

Set the value of idContaReceber

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

setIdCotacaoMoeda()

Set the value of idCotacaoMoeda

public setIdCotacaoMoeda(mixed $idCotacaoMoeda) : self
Parameters
$idCotacaoMoeda : mixed
Return values
self

setIdDepartamento()

Set the value of idDepartamento

public setIdDepartamento(mixed $idDepartamento) : self
Parameters
$idDepartamento : mixed
Return values
self

setIdEntidade()

Set the value of idEntidade

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

setIdEntidadeCorretor()

Set the value of idEntidadeCorretor

public setIdEntidadeCorretor(mixed $idEntidadeCorretor) : self
Parameters
$idEntidadeCorretor : mixed
Return values
self

setIdEntidadeProdutor()

Set the value of idEntidadeProdutor

public setIdEntidadeProdutor(mixed $idEntidadeProdutor) : self
Parameters
$idEntidadeProdutor : mixed
Return values
self

setIdFazenda()

Set the value of idFazenda

public setIdFazenda(mixed $idFazenda) : self
Parameters
$idFazenda : mixed
Return values
self

setIdMoeda()

Set the value of idMoeda

public setIdMoeda(mixed $idMoeda) : self
Parameters
$idMoeda : mixed
Return values
self

setIdNegocio()

Set the value of idNegocio

public setIdNegocio(mixed $idNegocio) : self
Parameters
$idNegocio : mixed
Return values
self

setIdProdutoVenda()

Set the value of idProdutoVenda

public setIdProdutoVenda(mixed $idProdutoVenda) : self
Parameters
$idProdutoVenda : mixed
Return values
self

setIdTipoPagamento()

Set the value of idTipoPagamento

public setIdTipoPagamento(mixed $idTipoPagamento) : self
Parameters
$idTipoPagamento : mixed
Return values
self

setIdUnidadeNegocio()

Set the value of idUnidadeNegocio

public setIdUnidadeNegocio(mixed $idUnidadeNegocio) : self
Parameters
$idUnidadeNegocio : mixed
Return values
self

setIdUsuario()

Set the value of idUsuario

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

setNomeCorretor()

Set the value of nomeCorretor

public setNomeCorretor(mixed $nomeCorretor) : self
Parameters
$nomeCorretor : mixed
Return values
self

setNumeroContrato()

Set the value of numeroContrato

public setNumeroContrato(mixed $numeroContrato) : self
Parameters
$numeroContrato : mixed
Return values
self

setObs()

Set the value of obs

public setObs(mixed $obs) : self
Parameters
$obs : mixed
Return values
self

setOpcaoVenda()

Set the value of opcaoVenda

public setOpcaoVenda(mixed $opcaoVenda) : self
Parameters
$opcaoVenda : mixed
Return values
self

setQtidadeTotalVendida()

Set the value of qtidadeTotalVendida

public setQtidadeTotalVendida(mixed $qtidadeTotalVendida) : self
Parameters
$qtidadeTotalVendida : mixed
Return values
self

setQtidadeVendaLote()

Set the value of qtidadeVendaLote

public setQtidadeVendaLote(mixed $qtidadeVendaLote) : self
Parameters
$qtidadeVendaLote : mixed
Return values
self

setRelacionamentoPagar()

Set the value of relacionamentoPagar

public setRelacionamentoPagar(mixed $relacionamentoPagar) : self
Parameters
$relacionamentoPagar : mixed
Return values
self

setStatusEntregue()

Set the value of statusEntregue

public setStatusEntregue(mixed $statusEntregue) : self
Parameters
$statusEntregue : mixed
Return values
self

setstatusVenda()

Set the value of statusVenda

public setstatusVenda(mixed $statusVenda) : self
Parameters
$statusVenda : mixed
Return values
self

setTipoVenda()

Set the value of tipoVenda

public setTipoVenda(mixed $tipoVenda) : self
Parameters
$tipoVenda : mixed
Return values
self

setTotalAnexo()

Set the value of totalAnexo

public setTotalAnexo(mixed $totalAnexo) : self
Parameters
$totalAnexo : mixed
Return values
self

setValorComissao()

Set the value of valorComissao

public setValorComissao(mixed $valorComissao) : self
Parameters
$valorComissao : mixed
Return values
self

setValorCotacao()

Set the value of valorCotacao

public setValorCotacao(mixed $valorCotacao) : self
Parameters
$valorCotacao : mixed
Return values
self

setValorDesconto()

Set the value of valorDesconto

public setValorDesconto(mixed $valorDesconto) : self
Parameters
$valorDesconto : mixed
Return values
self

setValorEmbalagens()

Set the value of valorEmbalagens

public setValorEmbalagens(mixed $valorEmbalagens) : self
Parameters
$valorEmbalagens : mixed
Return values
self

setValorFunrural()

Set the value of valorFunrural

public setValorFunrural(mixed $valorFunrural) : self
Parameters
$valorFunrural : mixed
Return values
self

setValorMoeda()

Set the value of valorMoeda

public setValorMoeda(mixed $valorMoeda) : self
Parameters
$valorMoeda : mixed
Return values
self

setValorOutrasDespesas()

Set the value of valorOutrasDespesas

public setValorOutrasDespesas(mixed $valorOutrasDespesas) : self
Parameters
$valorOutrasDespesas : mixed
Return values
self

setValorSeguro()

Set the value of valorSeguro

public setValorSeguro(mixed $valorSeguro) : self
Parameters
$valorSeguro : mixed
Return values
self

setValorTotal()

Set the value of valorTotal

public setValorTotal(mixed $valorTotal) : self
Parameters
$valorTotal : mixed
Return values
self

setValorTotalVenda()

Set the value of valorTotalVenda

public setValorTotalVenda(mixed $valorTotalVenda) : self
Parameters
$valorTotalVenda : mixed
Return values
self

setValorUnitario()

Set the value of valorUnitario

public setValorUnitario(mixed $valorUnitario) : self
Parameters
$valorUnitario : 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