Facturacion, se agrega PropiedadUnidad
This commit is contained in:
@ -39,6 +39,16 @@ class Unidad extends Ideal\Repository
|
||||
return $this->update($model, ['subtipo', 'piso', 'descripcion', 'orientacion', 'pt'], $new_data);
|
||||
}
|
||||
|
||||
public function fetchById(int $id): Model\Venta\Unidad
|
||||
{
|
||||
$query = $this->connection->getQueryBuilder()
|
||||
->select('a.*, up.prorrateo')
|
||||
->from("{$this->getTable()} a")
|
||||
->joined($this->joinProrrateo())
|
||||
->where('a.id = ?');
|
||||
return $this->fetchOne($query, [$id]);
|
||||
}
|
||||
|
||||
public function fetchByVenta(int $venta_id): array
|
||||
{
|
||||
$query = $this->connection->getQueryBuilder()
|
||||
|
Reference in New Issue
Block a user