diff --git a/ci4/.env b/ci4/.env index a514e191..db184790 100644 --- a/ci4/.env +++ b/ci4/.env @@ -40,15 +40,6 @@ app.baseURL = 'https://sk-imn.imnavajas.es' #-------------------------------------------------------------------- # DATABASE #-------------------------------------------------------------------- - -# database.default.hostname = localhost -# database.default.database = sk_jjo -# database.default.username = sk_jjo -# database.default.password = 61tv&G1Zf^XY -# database.default.DBDriver = MySQLi -# database.default.DBPrefix = -# database.default.dump = - database.default.hostname = localhost database.default.database = sk_imn database.default.username = sk_imn diff --git a/ci4/app/Controllers/Configuracion/Maquinas.php b/ci4/app/Controllers/Configuracion/Maquinas.php index 873fead6..ddbf022c 100644 --- a/ci4/app/Controllers/Configuracion/Maquinas.php +++ b/ci4/app/Controllers/Configuracion/Maquinas.php @@ -38,6 +38,12 @@ class Maquinas extends \App\Controllers\GoBaseResourceController { $this->viewData = ['usingServerSideDataTable' => true]; // JJO + // Breadcrumbs (IMN) + $this->viewData['breadcrumb'] = [ + ['title' => lang("App.menu_configuration"), 'route' => "", 'active' => false], + ['title' => lang("App.menu_maquina"), 'route' => site_url('configuracion/maquinas'), 'active' => true] + ]; + parent::initController($request, $response, $logger); } diff --git a/ci4/app/Controllers/Configuracion/Papelesgenericos.php b/ci4/app/Controllers/Configuracion/Papelesgenericos.php index 975cac76..8f24642e 100644 --- a/ci4/app/Controllers/Configuracion/Papelesgenericos.php +++ b/ci4/app/Controllers/Configuracion/Papelesgenericos.php @@ -40,7 +40,7 @@ class Papelesgenericos extends \App\Controllers\GoBaseResourceController // Se indica el flag para los ficheros borrados $this->delete_flag = 1; - // Breadcrumbs + // Breadcrumbs (IMN) $this->viewData['breadcrumb'] = [ ['title' => lang("App.menu_configuration"), 'route' => "", 'active' => false], ['title' => lang("App.menu_papelgenerico"), 'route' => site_url('configuracion/papelesgenericos'), 'active' => true] diff --git a/ci4/app/Entities/Tarifas/TarifaManipuladoEntity.php b/ci4/app/Entities/Tarifas/TarifaManipuladoEntity.php index 0bea4ac9..487bbe08 100644 --- a/ci4/app/Entities/Tarifas/TarifaManipuladoEntity.php +++ b/ci4/app/Entities/Tarifas/TarifaManipuladoEntity.php @@ -9,13 +9,18 @@ class TarifaManipuladoEntity extends \CodeIgniter\Entity\Entity protected $attributes = [ "id" => null, "nombre" => null, + "precio_min" => 0, + "importe_fijo" => 0, "user_created_id" => 0, "user_update_id" => 0, "is_deleted" => 0, + "deleted_at" => null, "created_at" => null, "updated_at" => null, ]; protected $casts = [ + "precio_min" => "float", + "importe_fijo" => "float", "user_created_id" => "int", "user_update_id" => "int", "is_deleted" => "int", diff --git a/ci4/app/Entities/Tarifas/TarifaacabadoEntity.php b/ci4/app/Entities/Tarifas/TarifaacabadoEntity.php index 8b7dfa49..26d252e2 100644 --- a/ci4/app/Entities/Tarifas/TarifaacabadoEntity.php +++ b/ci4/app/Entities/Tarifas/TarifaacabadoEntity.php @@ -13,10 +13,13 @@ class TarifaacabadoEntity extends \CodeIgniter\Entity\Entity "user_created_id" => 0, "user_update_id" => 0, "is_deleted" => 0, + "deleted_at" => null, "created_at" => null, "updated_at" => null, ]; protected $casts = [ + "precio_min" => "float", + "importe_fijo" => "float", "user_created_id" => "int", "user_update_id" => "int", "is_deleted" => "int", diff --git a/ci4/app/Entities/Tarifas/TarifapreimpresionEntity.php b/ci4/app/Entities/Tarifas/TarifapreimpresionEntity.php index 65534647..e7199ff0 100644 --- a/ci4/app/Entities/Tarifas/TarifapreimpresionEntity.php +++ b/ci4/app/Entities/Tarifas/TarifapreimpresionEntity.php @@ -9,16 +9,21 @@ class TarifapreimpresionEntity extends \CodeIgniter\Entity\Entity "id" => null, "nombre" => null, "precio" => null, + "precio_min" => 0, + "importe_fijo" => 0, "user_created_id" => 1, "user_update_id" => 1, - "deleted_at" => null, "is_deleted" => 0, + "deleted_at" => null, "created_at" => null, "updated_at" => null, ]; protected $casts = [ "precio" => "float", + "precio_min" => "float", + "importe_fijo" => "float", "user_created_id" => "int", "user_update_id" => "int", + "is_deleted" => "int", ]; } diff --git a/ci4/app/Language/es/Clientes.php b/ci4/app/Language/es/Clientes.php index cc3de4cd..9878be9c 100644 --- a/ci4/app/Language/es/Clientes.php +++ b/ci4/app/Language/es/Clientes.php @@ -4,30 +4,30 @@ return [ 'alias' => 'Alias', - 'ccc' => 'Ccc', - 'cccCliente' => 'Ccc Cliente', + 'ccc' => 'CCC', + 'cccCliente' => 'CC Cliente (IBAN)', 'cif' => 'CIF', 'ciudad' => 'Ciudad', - 'cliente' => 'Clientes', - 'clienteList' => 'Cliente List', + 'cliente' => 'Cliente', + 'clienteList' => 'Listado de Clientes', 'clientes' => 'Clientes', 'comentarios' => 'Comentarios', - 'comentariosProduccion' => 'Comentarios Producción', + 'comentariosProduccion' => 'Comentarios producción', 'comentariosTiradaFlexible' => 'Comentarios Tirada Flexible', 'comercialId' => 'Comercial', - 'comunidadAutonomaId' => 'Comunidad Autónoma ID', - 'cp' => 'Cp', - 'createdAt' => 'Creado el', - 'creditoAsegurado' => 'Crédito Asegurado', + 'comunidadAutonomaId' => 'Comunidad autónoma', + 'cp' => 'Código Postal', + 'createdAt' => 'Creado en', + 'creditoAsegurado' => 'Crédito asegurado', 'creditoSolunion' => 'Crédito Solunion', 'deletedAt' => 'Deleted At', - 'descuento' => 'Descuento', + 'descuento' => 'Descuento (porcentaje)', 'descuentoTiradaFlexible' => 'Descuento Tirada Flexible', 'direccion' => 'Dirección', 'disponibleFe' => 'Disponible Fe', 'email' => 'Email', - 'fechaVencimiento' => 'Fecha Vencimiento', - 'formaPagoId' => 'Forma Pago ID', + 'fechaVencimiento' => 'Cuando', + 'formaPagoId' => 'Forma de Pago', 'id' => 'ID', 'isDeleted' => 'Is Deleted', 'limiteCredito' => 'Limite Crédito', @@ -35,14 +35,14 @@ return [ 'limiteCreditoUserId' => 'Limite Crédito User ID', 'lineasenviofactura' => 'Lineas envéo factura', 'margen' => 'Margen', - 'margenPlantillaId' => 'Margen Plantilla ID', + 'margenPlantillaId' => 'Plantilla de márgenes', 'margenPod' => 'Margen Pod', - 'messageProductionStart' => 'Message Production Start', - 'messageTracking' => 'Message Tracking', - 'moduleTitle' => 'Clientes', + 'messageProductionStart' => 'Avisos de producción', + 'messageTracking' => 'Enviar trackings de envíos', + 'moduleTitle' => 'Cliente', 'nombre' => 'Nombre', - 'numCuenta' => 'Num Cuenta', - 'paisId' => 'Pais ID', + 'numCuenta' => 'Nº cuenta Safekat', + 'paisId' => 'Pais', 'provinciaId' => 'Provincia', 'psCustomerId' => 'Ps Customer ID', 'saturacion' => 'Saturación', @@ -50,7 +50,7 @@ return [ 'telefono' => 'Teléfono', 'tiendaId' => 'Tienda ID', 'tiradaFlexible' => 'Tirada Flexible', - 'updatedAt' => 'Actualizado el', + 'updatedAt' => 'Actualizado en', 'userCreatedId' => 'User Created ID', 'userUpdateId' => 'User Update ID', 'vencimiento' => 'Vencimiento', diff --git a/ci4/app/Language/es/Tarifaacabado.php b/ci4/app/Language/es/Tarifaacabado.php index 98c9b9ed..ee94e809 100644 --- a/ci4/app/Language/es/Tarifaacabado.php +++ b/ci4/app/Language/es/Tarifaacabado.php @@ -1,83 +1,82 @@ 'Ajuste', - 'createdAt' => 'Creado en', - 'deletedAt' => 'Borrado en', - 'formulaPrice' => 'Fórmula precio', - 'id' => 'ID', - 'moduleTitle' => 'Tarifas Acabado', - 'nombre' => 'Nombre', - 'precioMin' => 'Precio Mínimo', - 'importeFijo' => 'Importe Fijo', - 'tarifaacabado' => 'Tarifas Acabado', - 'tarifaacabadoList' => 'Lista Tarifas Acabado', - 'tarifasacabado' => 'Tarifas Acabado', - 'updatedAt' => 'Actualizado en', - 'userCreatedId' => 'ID Usuario "Creado en"', - 'userUpdateId' => 'ID Usuario "Actualizado en"', - 'validation' => [ - 'formula_price' => [ - 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', - 'required' => 'El campo {field} es obligatorio.', + 'ajuste' => 'Ajuste', + 'createdAt' => 'Creado en', + 'deletedAt' => 'Borrado en', + 'formulaPrice' => 'Fórmula precio', + 'id' => 'ID', + 'moduleTitle' => 'Tarifas Acabado', + 'nombre' => 'Nombre', + 'precioMin' => 'Precio Mínimo', + 'importeFijo' => 'Importe Fijo', + 'tarifaacabado' => 'Tarifas Acabado', + 'tarifaacabadoList' => 'Lista Tarifas Acabado', + 'tarifasacabado' => 'Tarifas Acabado', + 'updatedAt' => 'Actualizado en', + 'userCreatedId' => 'ID Usuario "Creado en"', + 'userUpdateId' => 'ID Usuario "Actualizado en"', + 'validation' => [ + 'formula_price' => [ + 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', + 'required' => 'El campo {field} es obligatorio.', - ], - ], + ], + ], - 'validation' => [ - 'nombre' => [ - 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', - 'required' => 'El campo {field} es obligatorio.', - ], - - - ], - - 'validation' => [ - 'precio_min' => [ - 'decimal' => 'El campo {field} debe contener un número decimal.', - 'required' => 'El campo {field} es obligatorio.', - ], - ], - - 'validation' => [ - 'importe_fijo' => [ - 'decimal' => 'El campo {field} debe contener un número decimal.', - 'required' => 'El campo {field} es obligatorio.', - ], + 'validation' => [ + 'nombre' => [ + 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', + 'required' => 'El campo {field} es obligatorio.', ], - 'validation' => [ - 'user_created_id' => [ - 'integer' => 'El campo {field} debe contener un número entero.', - 'required' => 'El campo {field} es obligatorio.', - ], + ], + + 'validation' => [ + 'precio_min' => [ + 'decimal' => 'El campo {field} debe contener un número decimal.', + 'required' => 'El campo {field} es obligatorio.', + ], + ], + + 'validation' => [ + 'importe_fijo' => [ + 'decimal' => 'El campo {field} debe contener un número decimal.', + 'required' => 'El campo {field} es obligatorio.', + ], + ], + + 'validation' => [ + 'user_created_id' => [ + 'integer' => 'El campo {field} debe contener un número entero.', + 'required' => 'El campo {field} es obligatorio.', + + ], - ], + ], - 'validation' => [ - 'user_update_id' => [ - 'integer' => 'El campo {field} debe contener un número entero.', - 'required' => 'El campo {field} es obligatorio.', + 'validation' => [ + 'user_update_id' => [ + 'integer' => 'El campo {field} debe contener un número entero.', + 'required' => 'El campo {field} es obligatorio.', - ], + ], - ], + ], - 'validation' => [ - 'ajuste' => [ - 'decimal' => 'El campo {field} debe contener un número decimal', - 'required' => 'El campo {field} es obligatorio.', + 'validation' => [ + 'ajuste' => [ + 'decimal' => 'El campo {field} debe contener un número decimal', + 'required' => 'El campo {field} es obligatorio.', - ], + ], - ], + ], ]; \ No newline at end of file diff --git a/ci4/app/Language/es/Tarifamanipulado.php b/ci4/app/Language/es/Tarifamanipulado.php index f383deb9..0f0b0235 100644 --- a/ci4/app/Language/es/Tarifamanipulado.php +++ b/ci4/app/Language/es/Tarifamanipulado.php @@ -1,89 +1,89 @@ 'Ajuste', - 'ajusteTotalPedido' => 'Ajuste Total Pedido', - 'createdAt' => 'Creado en', - 'deletedAt' => 'Borrado en', - 'formulaPrice' => 'Fórmula precio', - 'id' => 'ID', - 'moduleTitle' => 'Tarifas Manipulado', - 'nombre' => 'Nombre', - 'precioMax' => 'Precio Max', - 'precioMin' => 'Precio Min', - 'tarifamanipulado' => 'Tarifa Manipulado', - 'tarifamanipuladoList' => 'Lista Tarifas Manipulado', - 'tarifasmanipulado' => 'Tarifas Manipulado', - 'tiradaMax' => 'Tirada Max', - 'tiradaMin' => 'Tirada Min', - 'updatedAt' => 'Actualizado en', - 'userCreatedId' => 'ID Usuario \"Creado en\"', - 'userUpdateId' => 'ID Usuario \"Actualizado en\"', - 'validation' => [ - 'ajuste' => [ - 'decimal' => 'El campo {field} debe contener un número decimal.', - 'required' => 'El campo {field} es obligatorio.', + 'ajuste' => 'Ajuste', + 'ajusteTotalPedido' => 'Ajuste Total Pedido', + 'createdAt' => 'Creado en', + 'deletedAt' => 'Borrado en', + 'formulaPrice' => 'Fórmula precio', + 'id' => 'ID', + 'moduleTitle' => 'Tarifas Manipulado', + 'nombre' => 'Nombre', + 'precioMax' => 'Precio Max', + 'precioMin' => 'Precio Min', + 'importeFijo' => 'Importe Fijo', + 'tarifamanipulado' => 'Tarifa Manipulado', + 'tarifamanipuladoList' => 'Lista Tarifas Manipulado', + 'tarifasmanipulado' => 'Tarifas Manipulado', + 'tiradaMax' => 'Tirada Max', + 'tiradaMin' => 'Tirada Min', + 'updatedAt' => 'Actualizado en', + 'userCreatedId' => 'ID Usuario \"Creado en\"', + 'userUpdateId' => 'ID Usuario \"Actualizado en\"', + 'validation' => [ + 'ajuste' => [ + 'decimal' => 'El campo {field} debe contener un número decimal.', + 'required' => 'El campo {field} es obligatorio.', - ], + ], - 'ajuste_total_pedido' => [ - 'decimal' => 'El campo {field} debe contener un número decimal.', - 'required' => 'El campo {field} es obligatorio.', + 'ajuste_total_pedido' => [ + 'decimal' => 'El campo {field} debe contener un número decimal.', + 'required' => 'El campo {field} es obligatorio.', - ], + ], - 'formula_price' => [ - 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', - 'required' => 'El campo {field} es obligatorio.', + 'formula_price' => [ + 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', + 'required' => 'El campo {field} es obligatorio.', - ], + ], - 'nombre' => [ - 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', - 'required' => 'El campo {field} es obligatorio.', + 'nombre' => [ + 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', + 'required' => 'El campo {field} es obligatorio.', - ], + ], - 'precio_max' => [ - 'decimal' => 'El campo {field} debe contener un número decimal.', - 'required' => 'El campo {field} es obligatorio.', + 'precio_max' => [ + 'decimal' => 'El campo {field} debe contener un número decimal.', + 'required' => 'El campo {field} es obligatorio.', - ], + ], - 'precio_min' => [ - 'decimal' => 'El campo {field} debe contener un número decimal.', - 'required' => 'El campo {field} es obligatorio.', + 'precio_min' => [ + 'decimal' => 'El campo {field} debe contener un número decimal.', + 'required' => 'El campo {field} es obligatorio.', - ], + ], - 'tirada_max' => [ - 'integer' => 'El campo {field} debe contener un número entero.', - 'required' => 'El campo {field} es obligatorio.', + 'tirada_max' => [ + 'integer' => 'El campo {field} debe contener un número entero.', + 'required' => 'El campo {field} es obligatorio.', - ], + ], - 'tirada_min' => [ - 'integer' => 'El campo {field} debe contener un número entero.', - 'required' => 'El campo {field} es obligatorio.', + 'tirada_min' => [ + 'integer' => 'El campo {field} debe contener un número entero.', + 'required' => 'El campo {field} es obligatorio.', - ], + ], - 'user_created_id' => [ - 'integer' => 'El campo {field} debe contener un número entero.', - 'required' => 'El campo {field} es obligatorio.', + 'user_created_id' => [ + 'integer' => 'El campo {field} debe contener un número entero.', + 'required' => 'El campo {field} es obligatorio.', - ], + ], - 'user_update_id' => [ - 'integer' => 'El campo {field} debe contener un número entero.', - 'required' => 'El campo {field} es obligatorio.', + 'user_update_id' => [ + 'integer' => 'El campo {field} debe contener un número entero.', + 'required' => 'El campo {field} es obligatorio.', - ], + ], - ], + ], ]; \ No newline at end of file diff --git a/ci4/app/Language/es/Tarifapreimpresion.php b/ci4/app/Language/es/Tarifapreimpresion.php index d418d88f..999273cf 100644 --- a/ci4/app/Language/es/Tarifapreimpresion.php +++ b/ci4/app/Language/es/Tarifapreimpresion.php @@ -1,47 +1,48 @@ 'Creado en', - 'deletedAt' => 'Borrado en', - 'id' => 'ID', - 'moduleTitle' => 'Tarifas Preimpresión', - 'nombre' => 'Nombre', - 'precio' => 'Precio', - 'tarifapreimpresion' => 'Tarifa Preimpresión', - 'tarifapreimpresionList' => 'Lista Tarifas Preimpresión', - 'tarifaspreimpresion' => 'Tarifas Preimpresión', - 'updatedAt' => 'Actualizado en', - 'userCreatedId' => 'ID Usuario \"Creado en\"', - 'userUpdateId' => 'ID Usuario \"Actualizado en\"', - 'validation' => [ - 'nombre' => [ - 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', - 'required' => 'El campo {field} es obligatorio.', + 'createdAt' => 'Creado en', + 'deletedAt' => 'Borrado en', + 'id' => 'ID', + 'moduleTitle' => 'Tarifas Preimpresión', + 'nombre' => 'Nombre', + 'precio' => 'Precio', + 'precioMin' => 'Precio Mínimo', + 'importeFijo' => 'Importe Fijo', + 'tarifapreimpresion' => 'Tarifa Preimpresión', + 'tarifapreimpresionList' => 'Lista Tarifas Preimpresión', + 'tarifaspreimpresion' => 'Tarifas Preimpresión', + 'updatedAt' => 'Actualizado en', + 'userCreatedId' => 'ID Usuario \"Creado en\"', + 'userUpdateId' => 'ID Usuario \"Actualizado en\"', + 'validation' => [ + 'nombre' => [ + 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', + 'required' => 'El campo {field} es obligatorio.', - ], + ], - 'precio' => [ - 'decimal' => 'El campo {field} debe contener un número decimal.', - 'required' => 'El campo {field} es obligatorio.', + 'precio' => [ + 'decimal' => 'El campo {field} debe contener un número decimal.', + 'required' => 'El campo {field} es obligatorio.', - ], + ], - 'user_created_id' => [ - 'integer' => 'El campo {field} debe contener un número entero.', - 'required' => 'El campo {field} es obligatorio.', + 'user_created_id' => [ + 'integer' => 'El campo {field} debe contener un número entero.', + 'required' => 'El campo {field} es obligatorio.', - ], + ], - 'user_update_id' => [ - 'integer' => 'El campo {field} debe contener un número entero.', - 'required' => 'El campo {field} es obligatorio.', + 'user_update_id' => [ + 'integer' => 'El campo {field} debe contener un número entero.', + 'required' => 'El campo {field} es obligatorio.', - ], + ], - ], + ], ]; \ No newline at end of file diff --git a/ci4/app/Models/Tarifas/TarifaManipuladoModel.php b/ci4/app/Models/Tarifas/TarifaManipuladoModel.php index 35322769..6b6676df 100644 --- a/ci4/app/Models/Tarifas/TarifaManipuladoModel.php +++ b/ci4/app/Models/Tarifas/TarifaManipuladoModel.php @@ -18,6 +18,8 @@ class TarifaManipuladoModel extends \App\Models\GoBaseModel protected $allowedFields = [ "nombre", + "precio_min", + "importe_fijo", "deleted_at", "is_deleted", "user_created_id", @@ -39,6 +41,15 @@ class TarifaManipuladoModel extends \App\Models\GoBaseModel "label" => "Tarifamanipulado.nombre", "rules" => "trim|required|max_length[255]", ], + + "precio_min" => [ + "label" => "Tarifamanipulado.precioMin", + "rules" => "required|decimal", + ], + "importe_fijo" => [ + "label" => "Tarifamanipulado.importeFijo", + "rules" => "required|decimal", + ], ]; protected $validationMessages = [ @@ -46,6 +57,14 @@ class TarifaManipuladoModel extends \App\Models\GoBaseModel "max_length" => "Tarifamanipulado.validation.nombre.max_length", "required" => "Tarifamanipulado.validation.nombre.required", ], + "precio_min" => [ + "required" => "Tarifamanipulado.validation.precio_min.required", + "decimal" => "Tarifamanipulado.validation.precio_min.decimal", + ], + "importe_fijo" => [ + "required" => "Tarifamanipulado.validation.importe_fijo.required", + "decimal" => "Tarifamanipulado.validation.importe_fijo.decimal", + ], ]; /** @@ -67,7 +86,6 @@ class TarifaManipuladoModel extends \App\Models\GoBaseModel : $builder ->groupStart() ->like("t1.nombre", $search) - ->orLike("t1.nombre", $search) ->groupEnd(); } } diff --git a/ci4/app/Models/Tarifas/TarifaacabadoModel.php b/ci4/app/Models/Tarifas/TarifaacabadoModel.php index c929279b..dae4e06c 100644 --- a/ci4/app/Models/Tarifas/TarifaacabadoModel.php +++ b/ci4/app/Models/Tarifas/TarifaacabadoModel.php @@ -77,7 +77,7 @@ class TarifaacabadoModel extends \App\Models\GoBaseModel 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" + "t1.id AS id, t1.nombre AS nombre" ); //JJO @@ -88,9 +88,6 @@ class TarifaacabadoModel extends \App\Models\GoBaseModel : $builder ->groupStart() ->like("t1.nombre", $search) - ->orLike("t1.nombre", $search) - ->orLike("t1.precio_min", $search) - ->orLike("t1.importe_fijo", $search) ->groupEnd(); } } diff --git a/ci4/app/Models/Tarifas/TarifapreimpresionModel.php b/ci4/app/Models/Tarifas/TarifapreimpresionModel.php index 4d99f487..05d9a92b 100644 --- a/ci4/app/Models/Tarifas/TarifapreimpresionModel.php +++ b/ci4/app/Models/Tarifas/TarifapreimpresionModel.php @@ -14,7 +14,9 @@ class TarifapreimpresionModel extends \App\Models\GoBaseModel protected $allowedFields = [ "nombre", - "precio", + "precio", + "precio_min", + "importe_fijo", "deleted_at", "is_deleted", "user_created_id", @@ -38,7 +40,15 @@ class TarifapreimpresionModel extends \App\Models\GoBaseModel "precio" => [ "label" => "Tarifapreimpresion.precio", "rules" => "required|decimal", - ] + ], + "precio_min" => [ + "label" => "Tarifapreimpresion.precioMin", + "rules" => "required|decimal", + ], + "importe_fijo" => [ + "label" => "Tarifapreimpresion.importeFijo", + "rules" => "required|decimal", + ], ]; protected $validationMessages = [ @@ -50,5 +60,13 @@ class TarifapreimpresionModel extends \App\Models\GoBaseModel "decimal" => "Tarifapreimpresion.validation.precio.decimal", "required" => "Tarifapreimpresion.validation.precio.required", ], + "precio_min" => [ + "required" => "Tarifapreimpresion.validation.precio_min.required", + "decimal" => "Tarifapreimpresion.validation.precio_min.decimal", + ], + "importe_fijo" => [ + "required" => "Tarifapreimpresion.validation.importe_fijo.required", + "decimal" => "Tarifapreimpresion.validation.importe_fijo.decimal", + ], ]; } diff --git a/ci4/app/Views/themes/backend/vuexy/form/clientes/cliente/_clienteFormItems.php b/ci4/app/Views/themes/backend/vuexy/form/clientes/cliente/_clienteFormItems.php index 5044c6f4..89497da9 100644 --- a/ci4/app/Views/themes/backend/vuexy/form/clientes/cliente/_clienteFormItems.php +++ b/ci4/app/Views/themes/backend/vuexy/form/clientes/cliente/_clienteFormItems.php @@ -1,181 +1,520 @@ +
| = lang('Tarifaacabado.nombre') ?> | -= lang('Tarifaacabado.precioMin') ?> | -= lang('Tarifaacabado.importeFijo') ?> | = lang('Basic.global.Action') ?> |
|---|