From 2ff86a774305d822d2cfd5f8233216ad81d0e45d Mon Sep 17 00:00:00 2001 From: amazuecos Date: Mon, 21 Oct 2024 17:46:46 +0000 Subject: [PATCH] add comment field --- ci4/app/Language/es/Tarifamanipulado.php | 3 + .../Models/Tarifas/TarifaManipuladoModel.php | 2 +- .../tarifas/envios/_tarifaEnvioFormItems.php | 70 +++++++++++++------ .../tarifas/envios/viewTarifaEnvioForm.php | 3 +- .../tarifas/envios/viewTarifaEnvioList.php | 1 + .../tarifas/extra/_tarifaextraFormItems.php | 27 ++++++- .../tarifas/extra/viewTarifaextraList.php | 4 ++ .../manipulado/_tarifaManipuladoFormItems.php | 27 ++++++- .../manipulado/viewTarifaManipuladoList.php | 2 + 9 files changed, 110 insertions(+), 29 deletions(-) diff --git a/ci4/app/Language/es/Tarifamanipulado.php b/ci4/app/Language/es/Tarifamanipulado.php index 20079ddb..80afab6a 100755 --- a/ci4/app/Language/es/Tarifamanipulado.php +++ b/ci4/app/Language/es/Tarifamanipulado.php @@ -10,6 +10,9 @@ return [ 'id' => 'ID', 'moduleTitle' => 'Tarifas Manipulado', 'nombre' => 'Nombre', + 'code' => 'Código', + 'comment' => 'Comentario', + 'comment_placeholder' => 'Inserte un comentario', 'importeMinimo' => 'Importe mínimo', 'precioMax' => 'Precio T. Mín', 'precioMin' => 'Precio T. Máx', diff --git a/ci4/app/Models/Tarifas/TarifaManipuladoModel.php b/ci4/app/Models/Tarifas/TarifaManipuladoModel.php index 6dbfc38e..7783d480 100755 --- a/ci4/app/Models/Tarifas/TarifaManipuladoModel.php +++ b/ci4/app/Models/Tarifas/TarifaManipuladoModel.php @@ -82,7 +82,7 @@ class TarifaManipuladoModel extends \App\Models\BaseModel */ public function getResource(string $search = "") { - $builder = $this->db->table($this->table . " t1")->select("t1.id AS id, t1.nombre AS nombre, t1.precio_min AS precio_min, t1.importe_fijo AS importe_fijo + $builder = $this->db->table($this->table . " t1")->select("t1.id AS id,t1.code AS code, t1.nombre AS nombre, t1.precio_min AS precio_min, t1.importe_fijo AS importe_fijo ,t1.mostrar_en_presupuesto AS mostrar_en_presupuesto"); //JJO diff --git a/ci4/app/Views/themes/vuexy/form/tarifas/envios/_tarifaEnvioFormItems.php b/ci4/app/Views/themes/vuexy/form/tarifas/envios/_tarifaEnvioFormItems.php index a8bcbd97..4554153b 100644 --- a/ci4/app/Views/themes/vuexy/form/tarifas/envios/_tarifaEnvioFormItems.php +++ b/ci4/app/Views/themes/vuexy/form/tarifas/envios/_tarifaEnvioFormItems.php @@ -1,28 +1,52 @@
-
- +
+ +
+ + +
+
+ + +
+
+ + +
- - -
+ + +
-
- - -
- -
+
\ No newline at end of file diff --git a/ci4/app/Views/themes/vuexy/form/tarifas/envios/viewTarifaEnvioForm.php b/ci4/app/Views/themes/vuexy/form/tarifas/envios/viewTarifaEnvioForm.php index e00c5810..eebcfc00 100644 --- a/ci4/app/Views/themes/vuexy/form/tarifas/envios/viewTarifaEnvioForm.php +++ b/ci4/app/Views/themes/vuexy/form/tarifas/envios/viewTarifaEnvioForm.php @@ -176,7 +176,8 @@ idSrc: 'id', fields: [ { name: "nombre" - }, { + }, + { name: "cp_inicial" }, { name: "cp_final" diff --git a/ci4/app/Views/themes/vuexy/form/tarifas/envios/viewTarifaEnvioList.php b/ci4/app/Views/themes/vuexy/form/tarifas/envios/viewTarifaEnvioList.php index aaa5cad2..90010f72 100644 --- a/ci4/app/Views/themes/vuexy/form/tarifas/envios/viewTarifaEnvioList.php +++ b/ci4/app/Views/themes/vuexy/form/tarifas/envios/viewTarifaEnvioList.php @@ -18,6 +18,7 @@ + diff --git a/ci4/app/Views/themes/vuexy/form/tarifas/extra/_tarifaextraFormItems.php b/ci4/app/Views/themes/vuexy/form/tarifas/extra/_tarifaextraFormItems.php index a51d2a8b..a82397bd 100644 --- a/ci4/app/Views/themes/vuexy/form/tarifas/extra/_tarifaextraFormItems.php +++ b/ci4/app/Views/themes/vuexy/form/tarifas/extra/_tarifaextraFormItems.php @@ -14,7 +14,19 @@ value="nombre) ?>" > - +
+ + +
- +
+ + +
+ @@ -28,6 +29,9 @@ nombre) || strlen($item->nombre) < 51 ? esc($item->nombre) : character_limiter(esc($item->nombre), 50) ?> + + code) ?> + precio) ?> diff --git a/ci4/app/Views/themes/vuexy/form/tarifas/manipulado/_tarifaManipuladoFormItems.php b/ci4/app/Views/themes/vuexy/form/tarifas/manipulado/_tarifaManipuladoFormItems.php index ad10fafa..90307429 100644 --- a/ci4/app/Views/themes/vuexy/form/tarifas/manipulado/_tarifaManipuladoFormItems.php +++ b/ci4/app/Views/themes/vuexy/form/tarifas/manipulado/_tarifaManipuladoFormItems.php @@ -6,7 +6,19 @@
- +
+ + +
- +
+ + +
diff --git a/ci4/app/Views/themes/vuexy/form/tarifas/manipulado/viewTarifaManipuladoList.php b/ci4/app/Views/themes/vuexy/form/tarifas/manipulado/viewTarifaManipuladoList.php index f906ea10..8febbc74 100644 --- a/ci4/app/Views/themes/vuexy/form/tarifas/manipulado/viewTarifaManipuladoList.php +++ b/ci4/app/Views/themes/vuexy/form/tarifas/manipulado/viewTarifaManipuladoList.php @@ -17,6 +17,7 @@ + @@ -87,6 +88,7 @@ ], columns : [ { 'data': 'nombre' }, + { 'data': 'code' }, { 'data': 'precio_min' }, { 'data': 'importe_fijo' }, { 'data': 'mostrar_en_presupuesto' },