Implement search pago
This commit is contained in:
@ -56,4 +56,20 @@ class Pie extends Ideal\Repository
|
||||
->where('asociado = ?');
|
||||
return $this->fetchMany($query, [$pie_id]);
|
||||
}
|
||||
public function fetchByValue(float $value): array
|
||||
{
|
||||
$query = $this->connection->getQueryBuilder()
|
||||
->select()
|
||||
->from($this->getTable())
|
||||
->where('valor = ?');
|
||||
return $this->fetchMany($query, [$value]);
|
||||
}
|
||||
public function fetchByReajuste(int $reajuste_id): Model\Venta\Pie
|
||||
{
|
||||
$query = $this->connection->getQueryBuilder()
|
||||
->select()
|
||||
->from($this->getTable())
|
||||
->where('reajuste = ?');
|
||||
return $this->fetchOne($query, [$reajuste_id]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user