This commit is contained in:
2021-11-30 22:33:41 -03:00
parent f589ff960b
commit bbee033a8a
8 changed files with 168 additions and 11 deletions

View File

@ -14,7 +14,7 @@ use Incoviba\API\Common\Alias\Model;
* @property ?Escritura $escritura
* @property ?Subsidio $subsidio
* @property ?DateTime $escriturado
* @property ?Entrega $entrga
* @property ?Entrega $entrega
* @property ?DateTime $entregado
* @property DateTime $fecha
* @property double $valor_uf
@ -90,12 +90,12 @@ class Venta extends Model {
}
return $this->entrega_o;
}
protected $agente_o;
public function agente() {
if ($this->agente_o === null) {
$this->agente_o = $this->childOf(Agente::class, [Model::SELF_KEY => 'agente']);
protected $pa;
public function proyectoAgente() {
if ($this->pa === null) {
$this->pa = $this->childOf(ProyectoAgente::class, [Model::SELF_KEY => 'agente']);
}
return $this->agente_o;
return $this->pa;
}
protected $promocion_o;
public function promocion() {