feature/cierres #31

Merged
aldarien merged 462 commits from feature/cierres into develop 2025-09-11 17:05:18 -03:00
387 changed files with 1134 additions and 17656 deletions
Showing only changes of commit 00deebeaa8 - Show all commits

View File

@ -333,7 +333,7 @@ class Venta extends Ideal\Repository
->joined("INNER JOIN ({$subSubQuery}) e0 ON e0.`id` = e1.`id`");
$interrogations = implode(',', array_fill(0, count($unidad_ids), '?'));
$query = $this->connection->getQueryBuilder()
->select('a.*, pu.unidad')
->select('a.*, a.valor_uf AS valor, pu.unidad')
->from("{$this->getTable()} a")
->joined('INNER JOIN propiedad_unidad pu ON pu.propiedad = a.propiedad')
->joined("INNER JOIN ({$subQuery}) ev ON ev.`venta` = a.`id`")