Listado de Movimientos

This commit is contained in:
Juan Pablo Vial
2024-04-10 21:18:33 -04:00
parent 91679b164f
commit 8e4b5eaaf8
13 changed files with 256 additions and 9 deletions

View File

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