trabajando

This commit is contained in:
2025-07-25 13:39:11 +02:00
parent ca2aeacd84
commit 0785e7fcc8
18 changed files with 581 additions and 709 deletions

View File

@ -72,6 +72,8 @@ class Papelesimpresion extends \App\Controllers\BaseResourceController
$this->tpModel = new PapelImpresionTipologiaModel();
$this->validation = service("validation");
$this->papelService = service('papel');
// Breadcrumbs
$this->viewData['breadcrumb'] = [
['title' => lang("App.menu_configuration"), 'route' => "javascript:void(0);", 'active' => false],
@ -473,6 +475,22 @@ class Papelesimpresion extends \App\Controllers\BaseResourceController
}
}
public function getGramajeCliente(){
if ($this->request->isAJAX()) {
$data_input = $this->request->getGet();
$result = $this->papelService->getGramajes((object)$data_input);
return $this->respond($result);
} else {
return $this->failUnauthorized('Invalid request', 403);
}
}
public function papel_impresion_select()
{
$q = $this->request->getGet('q');