Reservas
This commit is contained in:
@ -93,7 +93,7 @@ class Contract extends Common\Ideal\Repository
|
||||
->select('a.*')
|
||||
->from("{$this->getTable()} a")
|
||||
->joined($this->statusJoin())
|
||||
->where('a.broker_rut = :broker_rut AND bcs.state = :state');
|
||||
->where('a.broker_rut = :broker_rut AND bcs.type = :state');
|
||||
return $this->fetchMany($query, ['broker_rut' => $brokerRut, 'state' => Model\Proyecto\Broker\Contract\Type::ACTIVE]);
|
||||
}
|
||||
|
||||
@ -108,8 +108,8 @@ class Contract extends Common\Ideal\Repository
|
||||
->select('a.*')
|
||||
->from("{$this->getTable()} a")
|
||||
->joined($this->statusJoin())
|
||||
->where('a.proyecto_id = :proyecto_id AND bcs.state = :state');
|
||||
return $this->fetchMany($query, ['proyecto_id' => $projectId, 'state' => Model\Proyecto\Broker\Contract\State\Type::ACTIVE->value]);
|
||||
->where('a.project_id = :project_id AND bcs.type = :state');
|
||||
return $this->fetchMany($query, ['project_id' => $projectId, 'state' => Model\Proyecto\Broker\Contract\State\Type::ACTIVE->value]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user