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
db_table
public
mixed
db_table
= 'cad_produtos_venda'
pk_field
public
mixed
pk_field
= 'idProdutoVenda'
sanitize
public
mixed
sanitize
= []
security
Allowed keys: 'select': <...> 'update': <...> 'delete': <...> 'insert': <...>
public
mixed
security
= []
tracking
public
mixed
tracking
= true
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
$anoAgricolaSafra
private
mixed
$anoAgricolaSafra
$data
private
mixed
$data
$dataEntregue
private
mixed
$dataEntregue
$DataHora
private
mixed
$DataHora
$dataVectoFutura
private
mixed
$dataVectoFutura
$dolarTravado
private
mixed
$dolarTravado
$idContaReceber
private
mixed
$idContaReceber
$idCotacaoMoeda
private
mixed
$idCotacaoMoeda
$idDepartamento
private
mixed
$idDepartamento
$idEntidade
private
mixed
$idEntidade
$idEntidadeCorretor
private
mixed
$idEntidadeCorretor
$idEntidadeProdutor
private
mixed
$idEntidadeProdutor
$idFazenda
private
mixed
$idFazenda
$idMoeda
private
mixed
$idMoeda
$idNegocio
private
mixed
$idNegocio
$idProdutoVenda
private
mixed
$idProdutoVenda
$idTipoPagamento
private
mixed
$idTipoPagamento
$idUnidadeNegocio
private
mixed
$idUnidadeNegocio
$idUsuario
private
mixed
$idUsuario
$nomeCorretor
private
mixed
$nomeCorretor
$numeroContrato
private
mixed
$numeroContrato
$obs
private
mixed
$obs
$opcaoVenda
private
mixed
$opcaoVenda
$qtidadeTotalVendida
private
mixed
$qtidadeTotalVendida
$qtidadeVendaLote
private
mixed
$qtidadeVendaLote
$relacionamentoPagar
private
mixed
$relacionamentoPagar
$statusEntregue
private
mixed
$statusEntregue
$statusVenda
private
mixed
$statusVenda
$tipoVenda
private
mixed
$tipoVenda
$totalAnexo
private
mixed
$totalAnexo
$valorComissao
private
mixed
$valorComissao
$valorCotacao
private
mixed
$valorCotacao
$valorDesconto
private
mixed
$valorDesconto
$valorEmbalagens
private
mixed
$valorEmbalagens
$valorFunrural
private
mixed
$valorFunrural
$valorMoeda
private
mixed
$valorMoeda
$valorOutrasDespesas
private
mixed
$valorOutrasDespesas
$valorSeguro
private
mixed
$valorSeguro
$valorTotal
private
mixed
$valorTotal
$valorTotalVenda
private
mixed
$valorTotalVenda
$valorUnitario
private
mixed
$valorUnitario
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
getData()
Get the value of data
public
getData() : mixed
getDatabase()
public
getDatabase() : mixed
getDataEntregue()
Get the value of dataEntregue
public
getDataEntregue() : mixed
getDataHora()
Get the value of DataHora
public
getDataHora() : mixed
getDataVectoFutura()
Get the value of dataVectoFutura
public
getDataVectoFutura() : mixed
getDBDriver()
public
static getDBDriver() : mixed
getDBTable()
public
static getDBTable() : mixed
getDolarTravado()
Get the value of dolarTravado
public
getDolarTravado() : 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
getIdEntidade()
Get the value of idEntidade
public
getIdEntidade() : mixed
getIdEntidadeCorretor()
Get the value of idEntidadeCorretor
public
getIdEntidadeCorretor() : mixed
getIdEntidadeProdutor()
Get the value of idEntidadeProdutor
public
getIdEntidadeProdutor() : mixed
getIdFazenda()
Get the value of idFazenda
public
getIdFazenda() : mixed
getIdMoeda()
Get the value of idMoeda
public
getIdMoeda() : mixed
getIdNegocio()
Get the value of idNegocio
public
getIdNegocio() : 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
getIdUsuario()
Get the value of idUsuario
public
getIdUsuario() : mixed
getNomeCorretor()
Get the value of nomeCorretor
public
getNomeCorretor() : mixed
getNumeroContrato()
Get the value of numeroContrato
public
getNumeroContrato() : mixed
getObs()
Get the value of obs
public
getObs() : mixed
getOpcaoVenda()
Get the value of opcaoVenda
public
getOpcaoVenda() : 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
getstatusVenda()
Get the value of statusVenda
public
getstatusVenda() : mixed
getTable()
public
getTable() : mixed
getTipoVenda()
Get the value of tipoVenda
public
getTipoVenda() : mixed
getTotalAnexo()
Get the value of totalAnexo
public
getTotalAnexo() : mixed
getValorComissao()
Get the value of valorComissao
public
getValorComissao() : mixed
getValorCotacao()
Get the value of valorCotacao
public
getValorCotacao() : 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
getValorMoeda()
Get the value of valorMoeda
public
getValorMoeda() : mixed
getValorOutrasDespesas()
Get the value of valorOutrasDespesas
public
getValorOutrasDespesas() : mixed
getValorSeguro()
Get the value of valorSeguro
public
getValorSeguro() : mixed
getValorTotal()
Get the value of valorTotal
public
getValorTotal() : 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()
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
setAnoAgricolaSafra()
Set the value of anoAgricolaSafra
public
setAnoAgricolaSafra(mixed $anoAgricolaSafra) : self
Parameters
- $anoAgricolaSafra : mixed
Return values
selfsetData()
Set the value of data
public
setData(mixed $data) : self
Parameters
- $data : mixed
Return values
selfsetDataEntregue()
Set the value of dataEntregue
public
setDataEntregue(mixed $dataEntregue) : self
Parameters
- $dataEntregue : mixed
Return values
selfsetDataHora()
Set the value of DataHora
public
setDataHora(mixed $DataHora) : self
Parameters
- $DataHora : mixed
Return values
selfsetDataVectoFutura()
Set the value of dataVectoFutura
public
setDataVectoFutura(mixed $dataVectoFutura) : self
Parameters
- $dataVectoFutura : mixed
Return values
selfsetDolarTravado()
Set the value of dolarTravado
public
setDolarTravado(mixed $dolarTravado) : self
Parameters
- $dolarTravado : mixed
Return values
selfsetIdContaReceber()
Set the value of idContaReceber
public
setIdContaReceber(mixed $idContaReceber) : self
Parameters
- $idContaReceber : mixed
Return values
selfsetIdCotacaoMoeda()
Set the value of idCotacaoMoeda
public
setIdCotacaoMoeda(mixed $idCotacaoMoeda) : self
Parameters
- $idCotacaoMoeda : mixed
Return values
selfsetIdDepartamento()
Set the value of idDepartamento
public
setIdDepartamento(mixed $idDepartamento) : self
Parameters
- $idDepartamento : mixed
Return values
selfsetIdEntidade()
Set the value of idEntidade
public
setIdEntidade(mixed $idEntidade) : self
Parameters
- $idEntidade : mixed
Return values
selfsetIdEntidadeCorretor()
Set the value of idEntidadeCorretor
public
setIdEntidadeCorretor(mixed $idEntidadeCorretor) : self
Parameters
- $idEntidadeCorretor : mixed
Return values
selfsetIdEntidadeProdutor()
Set the value of idEntidadeProdutor
public
setIdEntidadeProdutor(mixed $idEntidadeProdutor) : self
Parameters
- $idEntidadeProdutor : mixed
Return values
selfsetIdFazenda()
Set the value of idFazenda
public
setIdFazenda(mixed $idFazenda) : self
Parameters
- $idFazenda : mixed
Return values
selfsetIdMoeda()
Set the value of idMoeda
public
setIdMoeda(mixed $idMoeda) : self
Parameters
- $idMoeda : mixed
Return values
selfsetIdNegocio()
Set the value of idNegocio
public
setIdNegocio(mixed $idNegocio) : self
Parameters
- $idNegocio : mixed
Return values
selfsetIdProdutoVenda()
Set the value of idProdutoVenda
public
setIdProdutoVenda(mixed $idProdutoVenda) : self
Parameters
- $idProdutoVenda : mixed
Return values
selfsetIdTipoPagamento()
Set the value of idTipoPagamento
public
setIdTipoPagamento(mixed $idTipoPagamento) : self
Parameters
- $idTipoPagamento : mixed
Return values
selfsetIdUnidadeNegocio()
Set the value of idUnidadeNegocio
public
setIdUnidadeNegocio(mixed $idUnidadeNegocio) : self
Parameters
- $idUnidadeNegocio : mixed
Return values
selfsetIdUsuario()
Set the value of idUsuario
public
setIdUsuario(mixed $idUsuario) : self
Parameters
- $idUsuario : mixed
Return values
selfsetNomeCorretor()
Set the value of nomeCorretor
public
setNomeCorretor(mixed $nomeCorretor) : self
Parameters
- $nomeCorretor : mixed
Return values
selfsetNumeroContrato()
Set the value of numeroContrato
public
setNumeroContrato(mixed $numeroContrato) : self
Parameters
- $numeroContrato : mixed
Return values
selfsetObs()
Set the value of obs
public
setObs(mixed $obs) : self
Parameters
- $obs : mixed
Return values
selfsetOpcaoVenda()
Set the value of opcaoVenda
public
setOpcaoVenda(mixed $opcaoVenda) : self
Parameters
- $opcaoVenda : mixed
Return values
selfsetQtidadeTotalVendida()
Set the value of qtidadeTotalVendida
public
setQtidadeTotalVendida(mixed $qtidadeTotalVendida) : self
Parameters
- $qtidadeTotalVendida : mixed
Return values
selfsetQtidadeVendaLote()
Set the value of qtidadeVendaLote
public
setQtidadeVendaLote(mixed $qtidadeVendaLote) : self
Parameters
- $qtidadeVendaLote : mixed
Return values
selfsetRelacionamentoPagar()
Set the value of relacionamentoPagar
public
setRelacionamentoPagar(mixed $relacionamentoPagar) : self
Parameters
- $relacionamentoPagar : mixed
Return values
selfsetStatusEntregue()
Set the value of statusEntregue
public
setStatusEntregue(mixed $statusEntregue) : self
Parameters
- $statusEntregue : mixed
Return values
selfsetstatusVenda()
Set the value of statusVenda
public
setstatusVenda(mixed $statusVenda) : self
Parameters
- $statusVenda : mixed
Return values
selfsetTipoVenda()
Set the value of tipoVenda
public
setTipoVenda(mixed $tipoVenda) : self
Parameters
- $tipoVenda : mixed
Return values
selfsetTotalAnexo()
Set the value of totalAnexo
public
setTotalAnexo(mixed $totalAnexo) : self
Parameters
- $totalAnexo : mixed
Return values
selfsetValorComissao()
Set the value of valorComissao
public
setValorComissao(mixed $valorComissao) : self
Parameters
- $valorComissao : mixed
Return values
selfsetValorCotacao()
Set the value of valorCotacao
public
setValorCotacao(mixed $valorCotacao) : self
Parameters
- $valorCotacao : mixed
Return values
selfsetValorDesconto()
Set the value of valorDesconto
public
setValorDesconto(mixed $valorDesconto) : self
Parameters
- $valorDesconto : mixed
Return values
selfsetValorEmbalagens()
Set the value of valorEmbalagens
public
setValorEmbalagens(mixed $valorEmbalagens) : self
Parameters
- $valorEmbalagens : mixed
Return values
selfsetValorFunrural()
Set the value of valorFunrural
public
setValorFunrural(mixed $valorFunrural) : self
Parameters
- $valorFunrural : mixed
Return values
selfsetValorMoeda()
Set the value of valorMoeda
public
setValorMoeda(mixed $valorMoeda) : self
Parameters
- $valorMoeda : mixed
Return values
selfsetValorOutrasDespesas()
Set the value of valorOutrasDespesas
public
setValorOutrasDespesas(mixed $valorOutrasDespesas) : self
Parameters
- $valorOutrasDespesas : mixed
Return values
selfsetValorSeguro()
Set the value of valorSeguro
public
setValorSeguro(mixed $valorSeguro) : self
Parameters
- $valorSeguro : mixed
Return values
selfsetValorTotal()
Set the value of valorTotal
public
setValorTotal(mixed $valorTotal) : self
Parameters
- $valorTotal : mixed
Return values
selfsetValorTotalVenda()
Set the value of valorTotalVenda
public
setValorTotalVenda(mixed $valorTotalVenda) : self
Parameters
- $valorTotalVenda : mixed
Return values
selfsetValorUnitario()
Set the value of valorUnitario
public
setValorUnitario(mixed $valorUnitario) : self
Parameters
- $valorUnitario : 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 = '*'