ya se filtra bien

This commit is contained in:
2024-06-07 16:47:11 +02:00
parent aac17468c3
commit 38abbe22a7
3 changed files with 18 additions and 14 deletions

View File

@ -308,8 +308,8 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
return $this->respond(Collection::datatable(
$resourceData,
$this->model->getListaPresupuestosCliente("", $clienteId)->countAllResults(),
$this->model->getListaPresupuestosCliente($search, $clienteId)->countAllResults()
$this->model->getListaPresupuestosCliente([], $clienteId)->countAllResults(),
$this->model->getListaPresupuestosCliente($searchValues, $clienteId)->countAllResults()
));
} else {
return $this->failUnauthorized('Invalid request', 403);