Comparar glosa en mismo tamaño

This commit is contained in:
Juan Pablo Vial
2024-10-08 18:57:19 -03:00
parent 2592794a49
commit 33409a18e3

View File

@ -75,7 +75,7 @@ class Movimiento extends Ideal\Repository
$query = $this->connection->getQueryBuilder()
->select()
->from($this->getTable())
->where('cuenta_id = ? AND fecha = ? AND glosa = ? AND cargo = ? AND abono = ? AND saldo = ?');
->where('cuenta_id = ? AND fecha = ? AND LOWER(glosa) = LOWER(?) AND cargo = ? AND abono = ? AND saldo = ?');
return $this->fetchOne($query, [$cuenta_id, $fecha->format('Y-m-d'), $glosa, $cargo, $abono, $saldo]);
}
public function fetchAmountStartingFrom(int $start, int $amount): array