Facturacion, se agrega PropiedadUnidad

This commit is contained in:
2023-11-29 20:09:08 -03:00
parent 094209823a
commit 39048e12b3
24 changed files with 716 additions and 55 deletions

View File

@ -70,13 +70,24 @@ class Proyecto extends Ideal\Repository
'valor_terreno', 'corredor', 'superficie_sobre_nivel', 'superficie_bajo_nivel', 'pisos',
'subterraneos'], $new_data);
}
public function fetchById(int $id): Define\Model
{
$query = $this->connection->getQueryBuilder()
->select($this->columns())
->from("{$this->getTable()} a")
->joined($this->joinTerreno())
->where("a.id = ?");
return $this->fetchOne($query, [$id]);
}
public function fetchByName(string $name): Define\Model
{
$query = $this->connection->getQueryBuilder()
->select($this->columns())
->from("{$this->getTable()} a")
->joined($this->joinTerreno())
->where("descripcion = ?");
->where("a.descripcion = ?");
return $this->fetchOne($query, [$name]);
}
public function fetchAllActive(): array