Implement search pago
This commit is contained in:
@ -100,4 +100,12 @@ FROM (
|
||||
WHERE venta_id = ?";
|
||||
return $this->fetchMany($query, [$venta_id]);
|
||||
}
|
||||
public function fetchByValue(int $value): array
|
||||
{
|
||||
$query = $this->connection->getQueryBuilder()
|
||||
->select()
|
||||
->from($this->getTable())
|
||||
->where('valor = ? OR ROUND(valor/uf, 3) = ?');
|
||||
return $this->fetchMany($query, [$value, $value]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user