Fix de index

This commit is contained in:
Juan Pablo Vial
2025-01-17 16:56:13 -03:00
parent 079fd3bc74
commit ef46558040

View File

@ -168,7 +168,7 @@ class Factura extends Ideal\Repository
$query = $this->connection->getQueryBuilder()
->select()
->from($this->getTable())
->where('venta_id = :venta_id AND index = :index');
->where('venta_id = :venta_id AND `index` = :index');
return $this->fetchOne($query, ['venta_id' => $venta_id, 'index' => $index]);
}
}