feature/cierres #25

Open
aldarien wants to merge 446 commits from feature/cierres into develop
323 changed files with 967 additions and 12845 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`")