From 3c723c59d9495c9eeee8a992353bd3117b9924be Mon Sep 17 00:00:00 2001 From: imnavajas Date: Tue, 31 Oct 2023 22:32:21 +0100 Subject: [PATCH] Arreglada la edicion en servicios de presupuesto --- ci4/app/Config/Routes.php | 1 + .../Controllers/Presupuestos/PresupuestoAcabados.php | 3 --- .../Presupuestos/PresupuestoEncuadernaciones.php | 12 ------------ .../Presupuestos/PresupuestoManipulados.php | 8 -------- .../Presupuestos/PresupuestoPreimpresiones.php | 8 -------- ci4/app/Language/es/Presupuestos.php | 1 + .../cosidotapablanda/_datosServiciosItems.php | 2 +- 7 files changed, 3 insertions(+), 32 deletions(-) diff --git a/ci4/app/Config/Routes.php b/ci4/app/Config/Routes.php index e795fbe2..aca370e9 100644 --- a/ci4/app/Config/Routes.php +++ b/ci4/app/Config/Routes.php @@ -482,6 +482,7 @@ $routes->resource('cosidotapablanda', ['namespace' => 'App\Controllers\Presupue $routes->group('serviciosacabados', ['namespace' => 'App\Controllers\Presupuestos'], function ($routes) { $routes->post('datatable', 'PresupuestoAcabados::datatable', ['as' => 'dataTableOfPresupuestoAcabados']); $routes->post('datatable_editor', 'PresupuestoAcabados::datatable_editor', ['as' => 'editorOfPresupuestoAcabados']); + $routes->get('delete/(:num)', 'PresupuestoAcabados::delete/$1', ['as' => 'deletePresupuestoAcabado']); }); $routes->group('serviciosencuadernaciones', ['namespace' => 'App\Controllers\Presupuestos'], function ($routes) { diff --git a/ci4/app/Controllers/Presupuestos/PresupuestoAcabados.php b/ci4/app/Controllers/Presupuestos/PresupuestoAcabados.php index eb06794d..d5374629 100644 --- a/ci4/app/Controllers/Presupuestos/PresupuestoAcabados.php +++ b/ci4/app/Controllers/Presupuestos/PresupuestoAcabados.php @@ -5,9 +5,6 @@ use App\Controllers\GoBaseResourceController; use App\Models\Collection; -use App\Entities\Clientes\ClienteContactoEntity; - -use App\Models\Clientes\ClienteModel; use App\Models\Presupuestos\PresupuestoAcabadosModel; use DataTables\Editor; diff --git a/ci4/app/Controllers/Presupuestos/PresupuestoEncuadernaciones.php b/ci4/app/Controllers/Presupuestos/PresupuestoEncuadernaciones.php index 5160c308..c7a7687c 100644 --- a/ci4/app/Controllers/Presupuestos/PresupuestoEncuadernaciones.php +++ b/ci4/app/Controllers/Presupuestos/PresupuestoEncuadernaciones.php @@ -5,22 +5,10 @@ use App\Controllers\GoBaseResourceController; use App\Models\Collection; -use App\Entities\Clientes\ClienteContactoEntity; - -use App\Models\Clientes\ClienteModel; - use App\Models\Presupuestos\PresupuestoEncuadernacionesModel; use DataTables\Editor; use DataTables\Editor\Field; use DataTables\Editor\Validate; -use function App\Controllers\Clientes\csrf_hash; -use function App\Controllers\Clientes\csrf_token; -use function App\Controllers\Clientes\lang; -use function App\Controllers\Clientes\model; -use function App\Controllers\Clientes\redirect; -use function App\Controllers\Clientes\route_to; -use function App\Controllers\Clientes\view; -use const App\Controllers\Clientes\APPPATH; class PresupuestoEncuadernaciones extends \App\Controllers\GoBaseResourceController { diff --git a/ci4/app/Controllers/Presupuestos/PresupuestoManipulados.php b/ci4/app/Controllers/Presupuestos/PresupuestoManipulados.php index af2e86db..4dcfed56 100644 --- a/ci4/app/Controllers/Presupuestos/PresupuestoManipulados.php +++ b/ci4/app/Controllers/Presupuestos/PresupuestoManipulados.php @@ -13,14 +13,6 @@ use App\Models\Presupuestos\PresupuestoManipuladosModel; use DataTables\Editor; use DataTables\Editor\Field; use DataTables\Editor\Validate; -use function App\Controllers\Clientes\csrf_hash; -use function App\Controllers\Clientes\csrf_token; -use function App\Controllers\Clientes\lang; -use function App\Controllers\Clientes\model; -use function App\Controllers\Clientes\redirect; -use function App\Controllers\Clientes\route_to; -use function App\Controllers\Clientes\view; -use const App\Controllers\Clientes\APPPATH; class PresupuestoManipulados extends \App\Controllers\GoBaseResourceController { diff --git a/ci4/app/Controllers/Presupuestos/PresupuestoPreimpresiones.php b/ci4/app/Controllers/Presupuestos/PresupuestoPreimpresiones.php index 5e92fd69..dfd9a7f3 100644 --- a/ci4/app/Controllers/Presupuestos/PresupuestoPreimpresiones.php +++ b/ci4/app/Controllers/Presupuestos/PresupuestoPreimpresiones.php @@ -7,14 +7,6 @@ use App\Models\Presupuestos\PresupuestoPreimpresionesModel; use DataTables\Editor; use DataTables\Editor\Field; use DataTables\Editor\Validate; -use function App\Controllers\Clientes\csrf_hash; -use function App\Controllers\Clientes\csrf_token; -use function App\Controllers\Clientes\lang; -use function App\Controllers\Clientes\model; -use function App\Controllers\Clientes\redirect; -use function App\Controllers\Clientes\route_to; -use function App\Controllers\Clientes\view; -use const App\Controllers\Clientes\APPPATH; class PresupuestoPreimpresiones extends \App\Controllers\GoBaseResourceController { diff --git a/ci4/app/Language/es/Presupuestos.php b/ci4/app/Language/es/Presupuestos.php index 894d6601..302e1a98 100644 --- a/ci4/app/Language/es/Presupuestos.php +++ b/ci4/app/Language/es/Presupuestos.php @@ -97,6 +97,7 @@ return [ 'servicioAcabado' => 'Servicio de acabado', 'servicioPreimpresion' => 'Servicio de preimpresión', 'servicioEncuadernado' => 'Servicio de encuadernado', + 'servicioManipulado' => 'Servicio de manipulado', 'comentarios' => 'Comentarios', 'comentariosCliente' => 'Comentarios cliente', 'comentariosSafekat' => 'Comentarios Safekat', diff --git a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.php b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.php index 3045316b..c10c3aa0 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.php +++ b/ci4/app/Views/themes/backend/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.php @@ -228,7 +228,7 @@ const row = $(this).closest('tr'); if ($.isNumeric(dataId)) { $.ajax({ - url: `/presupuestos/presupuestoacabados/delete/${dataId}`, + url: `/serviciosacabados/delete/${dataId}`, method: 'GET', }).done((data, textStatus, jqXHR) => { $('#confirm2delete').modal('toggle');