Merge branch 'main' into 'dev/proveedores'

# Conflicts:
#   ci4/app/Views/themes/backend/vuexy/form/configuracion/maquinas/_maquinaFormItems.php
This commit is contained in:
2023-07-15 10:13:37 +00:00
21 changed files with 895 additions and 590 deletions

View File

@ -40,15 +40,6 @@ app.baseURL = 'https://sk-jjo.imnavajas.es'
#-------------------------------------------------------------------- #--------------------------------------------------------------------
# DATABASE # 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.hostname = localhost
database.default.database = sk_imn database.default.database = sk_imn
database.default.username = sk_imn database.default.username = sk_imn

View File

@ -38,6 +38,12 @@ class Maquinas extends \App\Controllers\GoBaseResourceController {
$this->viewData = ['usingServerSideDataTable' => true]; // JJO $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); parent::initController($request, $response, $logger);
} }

View File

@ -40,7 +40,7 @@ class Papelesgenericos extends \App\Controllers\GoBaseResourceController
// Se indica el flag para los ficheros borrados // Se indica el flag para los ficheros borrados
$this->delete_flag = 1; $this->delete_flag = 1;
// Breadcrumbs // Breadcrumbs (IMN)
$this->viewData['breadcrumb'] = [ $this->viewData['breadcrumb'] = [
['title' => lang("App.menu_configuration"), 'route' => "", 'active' => false], ['title' => lang("App.menu_configuration"), 'route' => "", 'active' => false],
['title' => lang("App.menu_papelgenerico"), 'route' => site_url('configuracion/papelesgenericos'), 'active' => true] ['title' => lang("App.menu_papelgenerico"), 'route' => site_url('configuracion/papelesgenericos'), 'active' => true]

View File

@ -9,13 +9,18 @@ class TarifaManipuladoEntity extends \CodeIgniter\Entity\Entity
protected $attributes = [ protected $attributes = [
"id" => null, "id" => null,
"nombre" => null, "nombre" => null,
"precio_min" => 0,
"importe_fijo" => 0,
"user_created_id" => 0, "user_created_id" => 0,
"user_updated_id" => 0, "user_updated_id" => 0,
"is_deleted" => 0, "is_deleted" => 0,
"deleted_at" => null,
"created_at" => null, "created_at" => null,
"updated_at" => null, "updated_at" => null,
]; ];
protected $casts = [ protected $casts = [
"precio_min" => "float",
"importe_fijo" => "float",
"user_created_id" => "int", "user_created_id" => "int",
"user_updated_id" => "int", "user_updated_id" => "int",
"is_deleted" => "int", "is_deleted" => "int",

View File

@ -13,10 +13,13 @@ class TarifaacabadoEntity extends \CodeIgniter\Entity\Entity
"user_created_id" => 0, "user_created_id" => 0,
"user_updated_id" => 0, "user_updated_id" => 0,
"is_deleted" => 0, "is_deleted" => 0,
"deleted_at" => null,
"created_at" => null, "created_at" => null,
"updated_at" => null, "updated_at" => null,
]; ];
protected $casts = [ protected $casts = [
"precio_min" => "float",
"importe_fijo" => "float",
"user_created_id" => "int", "user_created_id" => "int",
"user_updated_id" => "int", "user_updated_id" => "int",
"is_deleted" => "int", "is_deleted" => "int",

View File

@ -9,16 +9,21 @@ class TarifapreimpresionEntity extends \CodeIgniter\Entity\Entity
"id" => null, "id" => null,
"nombre" => null, "nombre" => null,
"precio" => null, "precio" => null,
"precio_min" => 0,
"importe_fijo" => 0,
"user_created_id" => 1, "user_created_id" => 1,
"user_updated_id" => 1, "user_update_id" => 1,
"deleted_at" => null,
"is_deleted" => 0, "is_deleted" => 0,
"deleted_at" => null,
"created_at" => null, "created_at" => null,
"updated_at" => null, "updated_at" => null,
]; ];
protected $casts = [ protected $casts = [
"precio" => "float", "precio" => "float",
"precio_min" => "float",
"importe_fijo" => "float",
"user_created_id" => "int", "user_created_id" => "int",
"user_updated_id" => "int", "user_update_id" => "int",
"is_deleted" => "int",
]; ];
} }

View File

@ -4,30 +4,30 @@
return [ return [
'alias' => 'Alias', 'alias' => 'Alias',
'ccc' => 'Ccc', 'ccc' => 'CCC',
'cccCliente' => 'Ccc Cliente', 'cccCliente' => 'CC Cliente (IBAN)',
'cif' => 'CIF', 'cif' => 'CIF',
'ciudad' => 'Ciudad', 'ciudad' => 'Ciudad',
'cliente' => 'Clientes', 'cliente' => 'Cliente',
'clienteList' => 'Cliente List', 'clienteList' => 'Listado de Clientes',
'clientes' => 'Clientes', 'clientes' => 'Clientes',
'comentarios' => 'Comentarios', 'comentarios' => 'Comentarios',
'comentariosProduccion' => 'Comentarios Producción', 'comentariosProduccion' => 'Comentarios producción',
'comentariosTiradaFlexible' => 'Comentarios Tirada Flexible', 'comentariosTiradaFlexible' => 'Comentarios Tirada Flexible',
'comercialId' => 'Comercial', 'comercialId' => 'Comercial',
'comunidadAutonomaId' => 'Comunidad Autónoma ID', 'comunidadAutonomaId' => 'Comunidad autónoma',
'cp' => 'Cp', 'cp' => 'Código Postal',
'createdAt' => 'Creado el', 'createdAt' => 'Creado en',
'creditoAsegurado' => 'Crédito Asegurado', 'creditoAsegurado' => 'Crédito asegurado',
'creditoSolunion' => 'Crédito Solunion', 'creditoSolunion' => 'Crédito Solunion',
'deletedAt' => 'Deleted At', 'deletedAt' => 'Deleted At',
'descuento' => 'Descuento', 'descuento' => 'Descuento (porcentaje)',
'descuentoTiradaFlexible' => 'Descuento Tirada Flexible', 'descuentoTiradaFlexible' => 'Descuento Tirada Flexible',
'direccion' => 'Dirección', 'direccion' => 'Dirección',
'disponibleFe' => 'Disponible Fe', 'disponibleFe' => 'Disponible Fe',
'email' => 'Email', 'email' => 'Email',
'fechaVencimiento' => 'Fecha Vencimiento', 'fechaVencimiento' => 'Cuando',
'formaPagoId' => 'Forma Pago ID', 'formaPagoId' => 'Forma de Pago',
'id' => 'ID', 'id' => 'ID',
'isDeleted' => 'Is Deleted', 'isDeleted' => 'Is Deleted',
'limiteCredito' => 'Limite Crédito', 'limiteCredito' => 'Limite Crédito',
@ -35,14 +35,14 @@ return [
'limiteCreditoUserId' => 'Limite Crédito User ID', 'limiteCreditoUserId' => 'Limite Crédito User ID',
'lineasenviofactura' => 'Lineas envéo factura', 'lineasenviofactura' => 'Lineas envéo factura',
'margen' => 'Margen', 'margen' => 'Margen',
'margenPlantillaId' => 'Margen Plantilla ID', 'margenPlantillaId' => 'Plantilla de márgenes',
'margenPod' => 'Margen Pod', 'margenPod' => 'Margen Pod',
'messageProductionStart' => 'Message Production Start', 'messageProductionStart' => 'Avisos de producción',
'messageTracking' => 'Message Tracking', 'messageTracking' => 'Enviar trackings de envíos',
'moduleTitle' => 'Clientes', 'moduleTitle' => 'Cliente',
'nombre' => 'Nombre', 'nombre' => 'Nombre',
'numCuenta' => 'Num Cuenta', 'numCuenta' => 'Nº cuenta Safekat',
'paisId' => 'Pais ID', 'paisId' => 'Pais',
'provinciaId' => 'Provincia', 'provinciaId' => 'Provincia',
'psCustomerId' => 'Ps Customer ID', 'psCustomerId' => 'Ps Customer ID',
'saturacion' => 'Saturación', 'saturacion' => 'Saturación',
@ -50,7 +50,7 @@ return [
'telefono' => 'Teléfono', 'telefono' => 'Teléfono',
'tiendaId' => 'Tienda ID', 'tiendaId' => 'Tienda ID',
'tiradaFlexible' => 'Tirada Flexible', 'tiradaFlexible' => 'Tirada Flexible',
'updatedAt' => 'Actualizado el', 'updatedAt' => 'Actualizado en',
'userCreatedId' => 'User Created ID', 'userCreatedId' => 'User Created ID',
'userUpdateId' => 'User Update ID', 'userUpdateId' => 'User Update ID',
'vencimiento' => 'Vencimiento', 'vencimiento' => 'Vencimiento',

View File

@ -1,83 +1,82 @@
<?php <?php
return [ return [
'ajuste' => 'Ajuste', 'ajuste' => 'Ajuste',
'createdAt' => 'Creado en', 'createdAt' => 'Creado en',
'deletedAt' => 'Borrado en', 'deletedAt' => 'Borrado en',
'formulaPrice' => 'Fórmula precio', 'formulaPrice' => 'Fórmula precio',
'id' => 'ID', 'id' => 'ID',
'moduleTitle' => 'Tarifas Acabado', 'moduleTitle' => 'Tarifas Acabado',
'nombre' => 'Nombre', 'nombre' => 'Nombre',
'precioMin' => 'Precio Mínimo', 'precioMin' => 'Precio Mínimo',
'importeFijo' => 'Importe Fijo', 'importeFijo' => 'Importe Fijo',
'tarifaacabado' => 'Tarifas Acabado', 'tarifaacabado' => 'Tarifas Acabado',
'tarifaacabadoList' => 'Lista Tarifas Acabado', 'tarifaacabadoList' => 'Lista Tarifas Acabado',
'tarifasacabado' => 'Tarifas Acabado', 'tarifasacabado' => 'Tarifas Acabado',
'updatedAt' => 'Actualizado en', 'updatedAt' => 'Actualizado en',
'userCreatedId' => 'ID Usuario "Creado en"', 'userCreatedId' => 'ID Usuario "Creado en"',
'userUpdateId' => 'ID Usuario "Actualizado en"', 'userUpdateId' => 'ID Usuario "Actualizado en"',
'validation' => [ 'validation' => [
'formula_price' => [ 'formula_price' => [
'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.',
'required' => 'El campo {field} es obligatorio.', 'required' => 'El campo {field} es obligatorio.',
], ],
], ],
'validation' => [ 'validation' => [
'nombre' => [ 'nombre' => [
'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.',
'required' => 'El campo {field} es obligatorio.', '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' => [
'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' => [ 'validation' => [
'user_updated_id' => [ 'user_update_id' => [
'integer' => 'El campo {field} debe contener un número entero.', 'integer' => 'El campo {field} debe contener un número entero.',
'required' => 'El campo {field} es obligatorio.', 'required' => 'El campo {field} es obligatorio.',
], ],
], ],
'validation' => [ 'validation' => [
'ajuste' => [ 'ajuste' => [
'decimal' => 'El campo {field} debe contener un número decimal', 'decimal' => 'El campo {field} debe contener un número decimal',
'required' => 'El campo {field} es obligatorio.', 'required' => 'El campo {field} es obligatorio.',
], ],
], ],
]; ];

View File

@ -1,89 +1,89 @@
<?php <?php
return [ return [
'ajuste' => 'Ajuste', 'ajuste' => 'Ajuste',
'ajusteTotalPedido' => 'Ajuste Total Pedido', 'ajusteTotalPedido' => 'Ajuste Total Pedido',
'createdAt' => 'Creado en', 'createdAt' => 'Creado en',
'deletedAt' => 'Borrado en', 'deletedAt' => 'Borrado en',
'formulaPrice' => 'Fórmula precio', 'formulaPrice' => 'Fórmula precio',
'id' => 'ID', 'id' => 'ID',
'moduleTitle' => 'Tarifas Manipulado', 'moduleTitle' => 'Tarifas Manipulado',
'nombre' => 'Nombre', 'nombre' => 'Nombre',
'precioMax' => 'Precio Max', 'precioMax' => 'Precio Max',
'precioMin' => 'Precio Min', 'precioMin' => 'Precio Min',
'tarifamanipulado' => 'Tarifa Manipulado', 'importeFijo' => 'Importe Fijo',
'tarifamanipuladoList' => 'Lista Tarifas Manipulado', 'tarifamanipulado' => 'Tarifa Manipulado',
'tarifasmanipulado' => 'Tarifas Manipulado', 'tarifamanipuladoList' => 'Lista Tarifas Manipulado',
'tiradaMax' => 'Tirada Max', 'tarifasmanipulado' => 'Tarifas Manipulado',
'tiradaMin' => 'Tirada Min', 'tiradaMax' => 'Tirada Max',
'updatedAt' => 'Actualizado en', 'tiradaMin' => 'Tirada Min',
'userCreatedId' => 'ID Usuario \"Creado en\"', 'updatedAt' => 'Actualizado en',
'userUpdateId' => 'ID Usuario \"Actualizado en\"', 'userCreatedId' => 'ID Usuario \"Creado en\"',
'validation' => [ 'userUpdateId' => 'ID Usuario \"Actualizado en\"',
'ajuste' => [ 'validation' => [
'decimal' => 'El campo {field} debe contener un número decimal.', 'ajuste' => [
'required' => 'El campo {field} es obligatorio.', 'decimal' => 'El campo {field} debe contener un número decimal.',
'required' => 'El campo {field} es obligatorio.',
], ],
'ajuste_total_pedido' => [ 'ajuste_total_pedido' => [
'decimal' => 'El campo {field} debe contener un número decimal.', 'decimal' => 'El campo {field} debe contener un número decimal.',
'required' => 'El campo {field} es obligatorio.', 'required' => 'El campo {field} es obligatorio.',
], ],
'formula_price' => [ 'formula_price' => [
'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.',
'required' => 'El campo {field} es obligatorio.', 'required' => 'El campo {field} es obligatorio.',
], ],
'nombre' => [ 'nombre' => [
'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', 'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.',
'required' => 'El campo {field} es obligatorio.', 'required' => 'El campo {field} es obligatorio.',
], ],
'precio_max' => [ 'precio_max' => [
'decimal' => 'El campo {field} debe contener un número decimal.', 'decimal' => 'El campo {field} debe contener un número decimal.',
'required' => 'El campo {field} es obligatorio.', 'required' => 'El campo {field} es obligatorio.',
], ],
'precio_min' => [ 'precio_min' => [
'decimal' => 'El campo {field} debe contener un número decimal.', 'decimal' => 'El campo {field} debe contener un número decimal.',
'required' => 'El campo {field} es obligatorio.', 'required' => 'El campo {field} es obligatorio.',
], ],
'tirada_max' => [ 'tirada_max' => [
'integer' => 'El campo {field} debe contener un número entero.', 'integer' => 'El campo {field} debe contener un número entero.',
'required' => 'El campo {field} es obligatorio.', 'required' => 'El campo {field} es obligatorio.',
], ],
'tirada_min' => [ 'tirada_min' => [
'integer' => 'El campo {field} debe contener un número entero.', 'integer' => 'El campo {field} debe contener un número entero.',
'required' => 'El campo {field} es obligatorio.', 'required' => 'El campo {field} es obligatorio.',
], ],
'user_created_id' => [ 'user_created_id' => [
'integer' => 'El campo {field} debe contener un número entero.', 'integer' => 'El campo {field} debe contener un número entero.',
'required' => 'El campo {field} es obligatorio.', 'required' => 'El campo {field} es obligatorio.',
], ],
'user_updated_id' => [ 'user_update_id' => [
'integer' => 'El campo {field} debe contener un número entero.', 'integer' => 'El campo {field} debe contener un número entero.',
'required' => 'El campo {field} es obligatorio.', 'required' => 'El campo {field} es obligatorio.',
], ],
], ],
]; ];

View File

@ -1,47 +1,48 @@
<?php <?php
return [ return [
'createdAt' => 'Creado en', 'createdAt' => 'Creado en',
'deletedAt' => 'Borrado en', 'deletedAt' => 'Borrado en',
'id' => 'ID', 'id' => 'ID',
'moduleTitle' => 'Tarifas Preimpresión', 'moduleTitle' => 'Tarifas Preimpresión',
'nombre' => 'Nombre', 'nombre' => 'Nombre',
'precio' => 'Precio', 'precio' => 'Precio',
'tarifapreimpresion' => 'Tarifa Preimpresión', 'precioMin' => 'Precio Mínimo',
'tarifapreimpresionList' => 'Lista Tarifas Preimpresión', 'importeFijo' => 'Importe Fijo',
'tarifaspreimpresion' => 'Tarifas Preimpresión', 'tarifapreimpresion' => 'Tarifa Preimpresión',
'updatedAt' => 'Actualizado en', 'tarifapreimpresionList' => 'Lista Tarifas Preimpresión',
'userCreatedId' => 'ID Usuario \"Creado en\"', 'tarifaspreimpresion' => 'Tarifas Preimpresión',
'userUpdateId' => 'ID Usuario \"Actualizado en\"', 'updatedAt' => 'Actualizado en',
'validation' => [ 'userCreatedId' => 'ID Usuario \"Creado en\"',
'nombre' => [ 'userUpdateId' => 'ID Usuario \"Actualizado en\"',
'max_length' => 'El campo {field} no puede exceder {param} caracteres en longitud.', 'validation' => [
'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' => [ 'precio' => [
'decimal' => 'El campo {field} debe contener un número decimal.', 'decimal' => 'El campo {field} debe contener un número decimal.',
'required' => 'El campo {field} es obligatorio.', 'required' => 'El campo {field} es obligatorio.',
], ],
'user_created_id' => [ 'user_created_id' => [
'integer' => 'El campo {field} debe contener un número entero.', 'integer' => 'El campo {field} debe contener un número entero.',
'required' => 'El campo {field} es obligatorio.', 'required' => 'El campo {field} es obligatorio.',
], ],
'user_updated_id' => [ 'user_update_id' => [
'integer' => 'El campo {field} debe contener un número entero.', 'integer' => 'El campo {field} debe contener un número entero.',
'required' => 'El campo {field} es obligatorio.', 'required' => 'El campo {field} es obligatorio.',
], ],
], ],
]; ];

View File

@ -18,6 +18,8 @@ class TarifaManipuladoModel extends \App\Models\GoBaseModel
protected $allowedFields = [ protected $allowedFields = [
"nombre", "nombre",
"precio_min",
"importe_fijo",
"deleted_at", "deleted_at",
"is_deleted", "is_deleted",
"user_created_id", "user_created_id",
@ -39,6 +41,15 @@ class TarifaManipuladoModel extends \App\Models\GoBaseModel
"label" => "Tarifamanipulado.nombre", "label" => "Tarifamanipulado.nombre",
"rules" => "trim|required|max_length[255]", "rules" => "trim|required|max_length[255]",
], ],
"precio_min" => [
"label" => "Tarifamanipulado.precioMin",
"rules" => "required|decimal",
],
"importe_fijo" => [
"label" => "Tarifamanipulado.importeFijo",
"rules" => "required|decimal",
],
]; ];
protected $validationMessages = [ protected $validationMessages = [
@ -46,6 +57,14 @@ class TarifaManipuladoModel extends \App\Models\GoBaseModel
"max_length" => "Tarifamanipulado.validation.nombre.max_length", "max_length" => "Tarifamanipulado.validation.nombre.max_length",
"required" => "Tarifamanipulado.validation.nombre.required", "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 : $builder
->groupStart() ->groupStart()
->like("t1.nombre", $search) ->like("t1.nombre", $search)
->orLike("t1.nombre", $search)
->groupEnd(); ->groupEnd();
} }
} }

View File

@ -77,7 +77,7 @@ class TarifaacabadoModel extends \App\Models\GoBaseModel
public function getResource(string $search = "") public function getResource(string $search = "")
{ {
$builder = $this->db->table($this->table . " t1")->select( $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 //JJO
@ -88,9 +88,6 @@ class TarifaacabadoModel extends \App\Models\GoBaseModel
: $builder : $builder
->groupStart() ->groupStart()
->like("t1.nombre", $search) ->like("t1.nombre", $search)
->orLike("t1.nombre", $search)
->orLike("t1.precio_min", $search)
->orLike("t1.importe_fijo", $search)
->groupEnd(); ->groupEnd();
} }
} }

View File

@ -15,6 +15,8 @@ class TarifapreimpresionModel extends \App\Models\GoBaseModel
protected $allowedFields = [ protected $allowedFields = [
"nombre", "nombre",
"precio", "precio",
"precio_min",
"importe_fijo",
"deleted_at", "deleted_at",
"is_deleted", "is_deleted",
"user_created_id", "user_created_id",
@ -38,7 +40,15 @@ class TarifapreimpresionModel extends \App\Models\GoBaseModel
"precio" => [ "precio" => [
"label" => "Tarifapreimpresion.precio", "label" => "Tarifapreimpresion.precio",
"rules" => "required|decimal", "rules" => "required|decimal",
] ],
"precio_min" => [
"label" => "Tarifapreimpresion.precioMin",
"rules" => "required|decimal",
],
"importe_fijo" => [
"label" => "Tarifapreimpresion.importeFijo",
"rules" => "required|decimal",
],
]; ];
protected $validationMessages = [ protected $validationMessages = [
@ -50,5 +60,13 @@ class TarifapreimpresionModel extends \App\Models\GoBaseModel
"decimal" => "Tarifapreimpresion.validation.precio.decimal", "decimal" => "Tarifapreimpresion.validation.precio.decimal",
"required" => "Tarifapreimpresion.validation.precio.required", "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",
],
]; ];
} }

View File

@ -1,181 +1,520 @@
<div class="row">
<div class="col-xl-12">
<div class="nav-align-top mb-4">
<ul class="nav nav-pills mb-3" role="tablist">
<li class="nav-item">
<button
type="button"
class="nav-link active"
role="tab"
data-bs-toggle="tab"
data-bs-target="#informacion-cliente"
aria-controls="informacion-cliente"
aria-selected="true">
Ficha de Cliente
</button>
</li>
<li class="nav-item">
<button
type="button"
class="nav-link"
role="tab"
data-bs-toggle="tab"
data-bs-target="#contactos"
aria-controls="contactos"
aria-selected="false">
Contactos
</button>
</li>
<li class="nav-item">
<button
type="button"
class="nav-link"
role="tab"
data-bs-toggle="tab"
data-bs-target="#domicilio-entrega"
aria-controls="domicilio-entrega"
aria-selected="false">
Domicilio de Entrega
</button>
</li>
<li class="nav-item">
<button
type="button"
class="nav-link"
role="tab"
data-bs-toggle="tab"
data-bs-target="#facturacion"
aria-controls="facturacion"
aria-selected="false">
Facturación
</button>
</li>
<li class="nav-item">
<button
type="button"
class="nav-link"
role="tab"
data-bs-toggle="tab"
data-bs-target="#pedidos"
aria-controls="pedidos"
aria-selected="false">
Pedidos
</button>
</li>
<li class="nav-item">
<button
type="button"
class="nav-link"
role="tab"
data-bs-toggle="tab"
data-bs-target="#usuarios"
aria-controls="usuarios"
aria-selected="false">
Usuarios
</button>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade show active" id="informacion-cliente" role="tabpanel">
<div class="accordion" id="collapsibleSection">
<div class="card accordion-item">
<h2 class="accordion-header" id="headingDeliveryAddress">
<button
type="button"
class="accordion-button"
data-bs-toggle="collapse"
data-bs-target="#datos-cliente"
aria-expanded="true"
aria-controls="datos-cliente">
Datos del Cliente
</button>
</h2>
<div
id="datos-cliente"
class="accordion-collapse collapse show"
data-bs-parent="#collapsibleSection"
>
<div class="accordion-body">
<div class="row g-3 mb-3">
<div class="col-md-12">
<label for="cif" class="form-label">
<?= lang('Clientes.cif') ?>*
</label>
<input type="text" id="cif" name="cif" required
maxLength="50" class="form-control"
value="<?= old('cif', $clienteEntity->cif) ?>"
>
</div>
<div class="col-md-6">
<label for="nombre" class="form-label">
<?= lang('Clientes.nombre') ?>*
</label>
<input
type="text" id="nombre" name="nombre" required
maxLength="255" class="form-control"
value="<?= old('nombre', $clienteEntity->nombre) ?>"
>
</div>
<div class="col-md-6">
<label for="alias" class="form-label">
<?= lang('Clientes.alias') ?>*
</label>
<input type="text" id="alias" name="alias" required
maxLength="255" class="form-control"
value="<?= old('alias', $clienteEntity->alias) ?>"
>
</div>
<div class="col-md-12">
<label for="direccion" class="form-label">
<?= lang('Clientes.direccion') ?>
</label>
<textarea rows="2"
id="direccion"
name="direccion"
style="height: 10em;"
class="form-control"
>
<?= old('direccion', $clienteEntity->direccion) ?>
</textarea>
</div>
<div class="col-md-4">
<label for="paisId" class="form-label">
<?= lang('Clientes.paisId') ?>
</label>
<select
id="paisId"
name="pais_id"
class="form-control select2"
style="width: 100%;"
>
<?php if (isset($paisList) && is_array($paisList) && !empty($paisList)) :
foreach ($paisList as $k => $v) : ?>
<option value="<?= $k ?>"<?= $k == $clienteEntity->pais_id ? ' selected' : '' ?>>
<?= $v ?>
</option>
<?php endforeach;
endif; ?>
</select>
</div>
<div class="col-md-4">
<label for="comunidadAutonomaId" class="form-label">
<?= lang('Clientes.comunidadAutonomaId') ?>
</label>
<select id="comunidadAutonomaId"
name="comunidad_autonoma_id"
class="select2 form-control"
style="width: 100%;"
>
<?php if (isset($comunidadAutonomaList) && is_array($comunidadAutonomaList) && !empty($comunidadAutonomaList)) :
foreach ($comunidadAutonomaList as $k => $v) : ?>
<option value="<?= $k ?>"<?= $k == $clienteEntity->comunidad_autonoma_id ? ' selected' : '' ?>>
<?= $v ?>
</option>
<?php endforeach;
endif; ?>
</select>
</div>
<div class="col-md-4">
<label for="provinciaId" class="form-label">
<?= lang('Clientes.provinciaId') ?>
</label>
<select
id="provinciaId"
name="provincia_id"
class="form-control select2"
style="width: 100%;"
>
<?php if (isset($provinciaList) && is_array($provinciaList) && !empty($provinciaList)) :
foreach ($provinciaList as $k => $v) : ?>
<option value="<?= $k ?>"<?= $k == $clienteEntity->provincia_id ? ' selected' : '' ?>>
<?= $v ?>
</option>
<?php endforeach;
endif; ?>
</select>
</div>
<div class="col-md-6">
<label for="ciudad" class="form-label">
<?= lang('Clientes.ciudad') ?>
</label>
<input type="text" id="ciudad" name="ciudad"
maxLength="100" class="form-control"
value="<?= old('ciudad', $clienteEntity->ciudad) ?>"
>
</div>
<div class="col-md-6">
<label for="cp" class="form-label">
<?= lang('Clientes.cp') ?>
</label>
<input type="text" id="cp" name="cp"
maxLength="10" class="form-control"
value="<?= old('cp', $clienteEntity->cp) ?>"
>
</div>
<div class="col-md-6">
<label for="telefono" class="form-label">
<?= lang('Clientes.telefono') ?>
</label>
<input type="text" id="telefono" name="telefono"
maxLength="60" class="form-control"
value="<?= old('telefono', $clienteEntity->telefono) ?>"
>
</div>
<div class="col-md-6">
<label for="email" class="form-label">
<?= lang('Clientes.email') ?>
</label>
<input type="email" id="email" name="email"
maxLength="150" class="form-control"
value="<?= old('email', $clienteEntity->email) ?>"
>
</div>
<div class="col-md-6">
<label for="comercialId" class="form-label">
<?= lang('Clientes.comercialId') ?>
</label>
<select
id="comercialId"
name="comercial_id"
class="form-control select2"
style="width: 100%;"
>
<?php if (isset($userList) && is_array($userList) && !empty($userList)) :
foreach ($userList as $k => $v) : ?>
<option value="<?= $k ?>"<?= $k == $clienteEntity->comercial_id ? ' selected' : '' ?>>
<?= $v ?>
</option>
<?php endforeach;
endif; ?>
</select>
</div>
<div class="col-md-6">
<label for="soporteId" class="form-label">
<?= lang('Clientes.soporteId') ?>
</label>
<select
id="soporteId"
name="soporte_id"
class="form-control select2"
style="width: 100%;"
>
<?php if (isset($userList2) && is_array($userList2) && !empty($userList2)) :
foreach ($userList2 as $k => $v) : ?>
<option value="<?= $k ?>"<?= $k == $clienteEntity->soporte_id ? ' selected' : '' ?>>
<?= $v ?>
</option>
<?php endforeach;
endif; ?>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="card accordion-item">
<h2 class="accordion-header" id="headingDeliveryOptions">
<button
type="button"
class="accordion-button collapsed"
data-bs-toggle="collapse"
data-bs-target="#contabilidad"
aria-expanded="false"
aria-controls="contabilidad">
Contabilidad
</button>
</h2>
<div
id="contabilidad"
class="accordion-collapse collapse"
aria-labelledby="headingDeliveryOptions"
data-bs-parent="#collapsibleSection">
<div class="accordion-body">
<div class="row g-3 mb-3">
<div class="col-md-6">
<label for="formaPagoId" class="form-label">
<?= lang('Clientes.formaPagoId') ?>
</label>
<select
id="formaPagoId"
name="forma_pago_id"
class="form-control select2"
style="width: 100%;"
>
<?php if (isset($formaDePagoList) && is_array($formaDePagoList) && !empty($formaDePagoList)) :
foreach ($formaDePagoList as $k => $v) : ?>
<option value="<?= $k ?>"<?= $k == $clienteEntity->forma_pago_id ? ' selected' : '' ?>>
<?= $v ?>
</option>
<?php endforeach;
endif; ?>
</select>
</div>
<div class="col-md-3">
<label for="vencimiento" class="form-label">
<?= lang('Clientes.vencimiento') ?>
</label>
<input type="number" id="vencimiento" name="vencimiento"
placeholder="15" maxLength="10" class="form-control"
value="<?= old('vencimiento', $clienteEntity->vencimiento) ?>"
>
</div>
<div class="col-md-3">
<label for="fechaVencimiento" class="form-label">
<?= lang('Clientes.fechaVencimiento') ?>
</label>
<input type="text" id="fechaVencimiento" name="fecha_vencimiento"
maxLength="100" class="form-control"
value="<?= old('fecha_vencimiento', $clienteEntity->fecha_vencimiento) ?>"
>
</div>
<div class="col-md-4">
<label for="ccc" class="form-label">
<?= lang('Clientes.ccc') ?>
</label>
<input type="text" id="ccc" name="ccc"
maxLength="100" class="form-control"
value="<?= old('ccc', $clienteEntity->ccc) ?>"
>
</div>
<div class="col-md-4">
<label for="cccCliente" class="form-label">
<?= lang('Clientes.cccCliente') ?>
</label>
<input type="text" id="cccCliente" name="ccc_cliente"
maxLength="100" class="form-control"
value="<?= old('ccc_cliente', $clienteEntity->ccc_cliente) ?>"
>
</div>
<div class="col-md-4">
<label for="numCuenta" class="form-label">
<?= lang('Clientes.numCuenta') ?>
</label>
<input type="text" id="numCuenta" name="num_cuenta"
maxLength="10" class="form-control"
value="<?= old('num_cuenta', $clienteEntity->num_cuenta) ?>"
>
</div>
<div class="col-md-3">
<label for="limiteCredito" class="form-label">
<?= lang('Clientes.limiteCredito') ?>
</label>
<input type="number" id="limiteCredito"
name="limite_credito"
placeholder="0.00" maxLength="8"
step="0.01" class="form-control"
value="<?= old('limite_credito', $clienteEntity->limite_credito) ?>"
>
</div>
<div class="col-md-3">
<div class="form-check">
<label for="creditoAsegurado" class="form-check-label">
<input type="checkbox" id="creditoAsegurado"
name="credito_asegurado" value="1"
class="form-check-input"<?= $clienteEntity->credito_asegurado == true ? 'checked' : ''; ?>>
<?= lang('Clientes.creditoAsegurado') ?>
</label>
</div>
</div>
<div class="col-md-3">
<label for="comentarios" class="form-label">
<?= lang('Clientes.comentarios') ?>
</label>
<textarea rows="3" id="comentarios" name="comentarios"
style="height: 10em;"
class="form-control">
<?= old('comentarios', $clienteEntity->comentarios) ?>
</textarea>
</div><!--//.mb-3 -->
</div>
</div>
</div>
</div>
<div class="card accordion-item">
<h2 class="accordion-header" id="headingPaymentMethod">
<button
type="button"
class="accordion-button collapsed"
data-bs-toggle="collapse"
data-bs-target="#configuracion"
aria-expanded="false"
aria-controls="configuracion">
Configuración
</button>
</h2>
<div
id="configuracion"
class="accordion-collapse collapse"
aria-labelledby="headingPaymentMethod"
data-bs-parent="#collapsibleSection"
>
<div class="accordion-body">
<div class="row g-3 mb-3">
<div class="col-md-3">
<div class="form-check">
<label for="disponibleFe" class="form-check-label">
<input type="checkbox" id="disponibleFe" name="disponible_fe" value="1"
class="form-check-input"<?= $clienteEntity->disponible_fe == true ? 'checked' : ''; ?>>
<?= lang('Clientes.disponibleFe') ?>
</label>
</div>
</div>
<div class="col-md-3">
<div class="form-check">
<label for="messageTracking" class="form-check-label">
<input type="checkbox" id="messageTracking" name="message_tracking" value="1"
class="form-check-input"<?= $clienteEntity->message_tracking == true ? 'checked' : ''; ?>>
<?= lang('Clientes.messageTracking') ?>
</label>
</div>
</div>
<div class="col-md-3">
<div class="form-check">
<label for="messageProductionStart" class="form-check-label">
<input type="checkbox" id="messageProductionStart" name="message_production_start" value="1"
class="form-check-input"<?= $clienteEntity->message_production_start == true ? 'checked' : ''; ?>>
<?= lang('Clientes.messageProductionStart') ?>
</label>
</div>
</div>
<div class="col-md-3">
<div class="form-check">
<label for="tiradaFlexible" class="form-check-label">
<input type="checkbox" id="tiradaFlexible" name="tirada_flexible" value="1"
class="form-check-input"<?= $clienteEntity->tirada_flexible == true ? 'checked' : ''; ?>>
<?= lang('Clientes.tiradaFlexible') ?>
</label>
</div>
</div>
<div class="col-md-3">
<label for="descuentoTiradaFlexible" class="form-label">
<?= lang('Clientes.descuentoTiradaFlexible') ?>
</label>
<input type="number" id="descuentoTiradaFlexible"
name="descuento_tirada_flexible"
placeholder="20.00" maxLength="8" step="0.01" class="form-control"
value="<?= old('descuento_tirada_flexible', $clienteEntity->descuento_tirada_flexible) ?>"
>
</div>
<div class="col-md-9">
<label for="comentariosTiradaFlexible" class="form-label">
<?= lang('Clientes.comentariosTiradaFlexible') ?>
</label>
<textarea rows="3" id="comentariosTiradaFlexible"
name="comentarios_tirada_flexible"
style="height: 10em;"
class="form-control">
<?= old('comentarios_tirada_flexible', $clienteEntity->comentarios_tirada_flexible) ?>
</textarea>
</div><!--//.mb-3 -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="contactos" role="tabpanel">
<h3>Proximanente</h3>
</div>
<div class="tab-pane fade" id="domicilio-entrega" role="tabpanel">
<h3>Proximanente</h3>
</div>
<div class="tab-pane fade" id="facturacion" role="tabpanel">
<h3>Proximanente</h3>
</div>
<div class="tab-pane fade" id="pedidos" role="tabpanel">
<h3>Proximanente</h3>
</div>
<div class="tab-pane fade" id="usuarios" role="tabpanel">
<h3>Proximanente</h3>
</div>
</div>
</div>
</div>
<div class="card-footer">
<p>Usuario Creación: <?= $clienteEntity->user_created_id ?> @ <?= $clienteEntity->created_at ?></p>
<p>Usuario Última Edición: <?= $clienteEntity->user_update_id ?> @ <?= $clienteEntity->updated_at ?></p>
</div>
</div>
<div class="row"> <div class="row">
<div class="col-md-12 col-lg-6 px-4"> <div class="col-md-12 col-lg-6 px-4">
<div class="mb-3">
<label for="nombre" class="form-label">
<?= lang('Clientes.nombre') ?>*
</label>
<input type="text" id="nombre" name="nombre" required maxLength="255" class="form-control"
value="<?= old('nombre', $clienteEntity->nombre) ?>">
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="alias" class="form-label">
<?= lang('Clientes.alias') ?>*
</label>
<input type="text" id="alias" name="alias" required maxLength="255" class="form-control"
value="<?= old('alias', $clienteEntity->alias) ?>">
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="cif" class="form-label">
<?= lang('Clientes.cif') ?>*
</label>
<input type="text" id="cif" name="cif" required maxLength="50" class="form-control"
value="<?= old('cif', $clienteEntity->cif) ?>">
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="direccion" class="form-label">
<?= lang('Clientes.direccion') ?>
</label>
<textarea rows="3" id="direccion" name="direccion" style="height: 10em;"
class="form-control"><?= old('direccion', $clienteEntity->direccion) ?></textarea>
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="ciudad" class="form-label">
<?= lang('Clientes.ciudad') ?>
</label>
<input type="text" id="ciudad" name="ciudad" maxLength="100" class="form-control"
value="<?= old('ciudad', $clienteEntity->ciudad) ?>">
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="comunidadAutonomaId" class="form-label">
<?= lang('Clientes.comunidadAutonomaId') ?>
</label>
<select id="comunidadAutonomaId" name="comunidad_autonoma_id" class="select2 form-control"
style="width: 100%;">
<?php if (isset($comunidadAutonomaList) && is_array($comunidadAutonomaList) && !empty($comunidadAutonomaList)) :
foreach ($comunidadAutonomaList as $k => $v) : ?>
<option value="<?= $k ?>"<?= $k == $clienteEntity->comunidad_autonoma_id ? ' selected' : '' ?>>
<?= $v ?>
</option>
<?php endforeach;
endif; ?>
</select>
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="provinciaId" class="form-label">
<?= lang('Clientes.provinciaId') ?>*
</label>
<select id="provinciaId" name="provincia_id" required class="form-control select2" style="width: 100%;">
<?php if (isset($provinciaList) && is_array($provinciaList) && !empty($provinciaList)) :
foreach ($provinciaList as $k => $v) : ?>
<option value="<?= $k ?>"<?= $k == $clienteEntity->provincia_id ? ' selected' : '' ?>>
<?= $v ?>
</option>
<?php endforeach;
endif; ?>
</select>
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="cp" class="form-label">
<?= lang('Clientes.cp') ?>
</label>
<input type="text" id="cp" name="cp" maxLength="10" class="form-control"
value="<?= old('cp', $clienteEntity->cp) ?>">
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="paisId" class="form-label">
<?= lang('Clientes.paisId') ?>
</label>
<select id="paisId" name="pais_id" class="form-control select2" style="width: 100%;">
<?php if (isset($paisList) && is_array($paisList) && !empty($paisList)) :
foreach ($paisList as $k => $v) : ?>
<option value="<?= $k ?>"<?= $k == $clienteEntity->pais_id ? ' selected' : '' ?>>
<?= $v ?>
</option>
<?php endforeach;
endif; ?>
</select>
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="telefono" class="form-label">
<?= lang('Clientes.telefono') ?>
</label>
<input type="text" id="telefono" name="telefono" maxLength="60" class="form-control"
value="<?= old('telefono', $clienteEntity->telefono) ?>">
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="email" class="form-label">
<?= lang('Clientes.email') ?>
</label>
<input type="email" id="email" name="email" maxLength="150" class="form-control"
value="<?= old('email', $clienteEntity->email) ?>">
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="comercialId" class="form-label">
<?= lang('Clientes.comercialId') ?>*
</label>
<select id="comercialId" name="comercial_id" required class="form-control select2" style="width: 100%;">
<?php if (isset($userList) && is_array($userList) && !empty($userList)) :
foreach ($userList as $k => $v) : ?>
<option value="<?= $k ?>"<?= $k == $clienteEntity->comercial_id ? ' selected' : '' ?>>
<?= $v ?>
</option>
<?php endforeach;
endif; ?>
</select>
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="soporteId" class="form-label">
<?= lang('Clientes.soporteId') ?>*
</label>
<select id="soporteId" name="soporte_id" required class="form-control select2" style="width: 100%;">
<?php if (isset($userList2) && is_array($userList2) && !empty($userList2)) :
foreach ($userList2 as $k => $v) : ?>
<option value="<?= $k ?>"<?= $k == $clienteEntity->soporte_id ? ' selected' : '' ?>>
<?= $v ?>
</option>
<?php endforeach;
endif; ?>
</select>
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="formaPagoId" class="form-label">
<?= lang('Clientes.formaPagoId') ?>
</label>
<select id="formaPagoId" name="forma_pago_id" class="form-control select2" style="width: 100%;">
<?php if (isset($formaDePagoList) && is_array($formaDePagoList) && !empty($formaDePagoList)) :
foreach ($formaDePagoList as $k => $v) : ?>
<option value="<?= $k ?>"<?= $k == $clienteEntity->forma_pago_id ? ' selected' : '' ?>>
<?= $v ?>
</option>
<?php endforeach;
endif; ?>
</select>
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="vencimiento" class="form-label">
<?= lang('Clientes.vencimiento') ?>*
</label>
<input type="number" id="vencimiento" name="vencimiento" required placeholder="15" maxLength="10"
class="form-control" value="<?= old('vencimiento', $clienteEntity->vencimiento) ?>">
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="fechaVencimiento" class="form-label">
<?= lang('Clientes.fechaVencimiento') ?>
</label>
<input type="text" id="fechaVencimiento" name="fecha_vencimiento" maxLength="100" class="form-control"
value="<?= old('fecha_vencimiento', $clienteEntity->fecha_vencimiento) ?>">
</div><!--//.mb-3 -->
<div class="mb-3"> <div class="mb-3">
<label for="margen" class="form-label"> <label for="margen" class="form-label">
@ -201,15 +540,7 @@
class="form-control" value="<?= old('descuento', $clienteEntity->descuento) ?>"> class="form-control" value="<?= old('descuento', $clienteEntity->descuento) ?>">
</div><!--//.mb-3 --> </div><!--//.mb-3 -->
<div class="mb-3"> <?php /* A implementar en el controller
<label for="limiteCredito" class="form-label">
<?= lang('Clientes.limiteCredito') ?>*
</label>
<input type="number" id="limiteCredito" name="limite_credito" required placeholder="0.00" maxLength="8"
step="0.01" class="form-control"
value="<?= old('limite_credito', $clienteEntity->limite_credito) ?>">
</div><!--//.mb-3 -->
<div class="mb-3"> <div class="mb-3">
<label for="limiteCreditoUserId" class="form-label"> <label for="limiteCreditoUserId" class="form-label">
<?= lang('Clientes.limiteCreditoUserId') ?>* <?= lang('Clientes.limiteCreditoUserId') ?>*
@ -228,6 +559,8 @@
value="<?= old('limite_credito_change_at', $clienteEntity->limite_credito_change_at) ?>"> value="<?= old('limite_credito_change_at', $clienteEntity->limite_credito_change_at) ?>">
</div><!--//.mb-3 --> </div><!--//.mb-3 -->
*/ ?>
<div class="mb-3"> <div class="mb-3">
<label for="creditoSolunion" class="form-label"> <label for="creditoSolunion" class="form-label">
<?= lang('Clientes.creditoSolunion') ?> <?= lang('Clientes.creditoSolunion') ?>
@ -238,103 +571,6 @@
</div><!--//.col --> </div><!--//.col -->
<div class="col-md-12 col-lg-6 px-4"> <div class="col-md-12 col-lg-6 px-4">
<div class="mb-3">
<div class="form-check">
<label for="creditoAsegurado" class="form-check-label">
<input type="checkbox" id="creditoAsegurado" name="credito_asegurado" value="1"
class="form-check-input"<?= $clienteEntity->credito_asegurado == true ? 'checked' : ''; ?>>
<?= lang('Clientes.creditoAsegurado') ?>
</label>
</div><!--//.form-check -->
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="ccc" class="form-label">
<?= lang('Clientes.ccc') ?>
</label>
<input type="text" id="ccc" name="ccc" maxLength="100" class="form-control"
value="<?= old('ccc', $clienteEntity->ccc) ?>">
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="cccCliente" class="form-label">
<?= lang('Clientes.cccCliente') ?>
</label>
<input type="text" id="cccCliente" name="ccc_cliente" maxLength="100" class="form-control"
value="<?= old('ccc_cliente', $clienteEntity->ccc_cliente) ?>">
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="numCuenta" class="form-label">
<?= lang('Clientes.numCuenta') ?>
</label>
<input type="text" id="numCuenta" name="num_cuenta" maxLength="10" class="form-control"
value="<?= old('num_cuenta', $clienteEntity->num_cuenta) ?>">
</div><!--//.mb-3 -->
<div class="mb-3">
<div class="form-check">
<label for="disponibleFe" class="form-check-label">
<input type="checkbox" id="disponibleFe" name="disponible_fe" value="1"
class="form-check-input"<?= $clienteEntity->disponible_fe == true ? 'checked' : ''; ?>>
<?= lang('Clientes.disponibleFe') ?>
</label>
</div><!--//.form-check -->
</div><!--//.mb-3 -->
<div class="mb-3">
<div class="form-check">
<label for="messageTracking" class="form-check-label">
<input type="checkbox" id="messageTracking" name="message_tracking" value="1"
class="form-check-input"<?= $clienteEntity->message_tracking == true ? 'checked' : ''; ?>>
<?= lang('Clientes.messageTracking') ?>
</label>
</div><!--//.form-check -->
</div><!--//.mb-3 -->
<div class="mb-3">
<div class="form-check">
<label for="messageProductionStart" class="form-check-label">
<input type="checkbox" id="messageProductionStart" name="message_production_start" value="1"
class="form-check-input"<?= $clienteEntity->message_production_start == true ? 'checked' : ''; ?>>
<?= lang('Clientes.messageProductionStart') ?>
</label>
</div><!--//.form-check -->
</div><!--//.mb-3 -->
<div class="mb-3">
<div class="form-check">
<label for="tiradaFlexible" class="form-check-label">
<input type="checkbox" id="tiradaFlexible" name="tirada_flexible" value="1"
class="form-check-input"<?= $clienteEntity->tirada_flexible == true ? 'checked' : ''; ?>>
<?= lang('Clientes.tiradaFlexible') ?>
</label>
</div><!--//.form-check -->
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="descuentoTiradaFlexible" class="form-label">
<?= lang('Clientes.descuentoTiradaFlexible') ?>*
</label>
<input type="number" id="descuentoTiradaFlexible" name="descuento_tirada_flexible" required
placeholder="20.00" maxLength="8" step="0.01" class="form-control"
value="<?= old('descuento_tirada_flexible', $clienteEntity->descuento_tirada_flexible) ?>">
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="comentariosTiradaFlexible" class="form-label">
<?= lang('Clientes.comentariosTiradaFlexible') ?>*
</label>
<textarea rows="3" id="comentariosTiradaFlexible" name="comentarios_tirada_flexible" required
style="height: 10em;"
class="form-control"><?= old('comentarios_tirada_flexible', $clienteEntity->comentarios_tirada_flexible) ?></textarea>
</div><!--//.mb-3 -->
<div class="mb-3"> <div class="mb-3">
<label for="saturacion" class="form-label"> <label for="saturacion" class="form-label">
<?= lang('Clientes.saturacion') ?>* <?= lang('Clientes.saturacion') ?>*
@ -386,38 +622,10 @@
</div><!--//.form-check --> </div><!--//.form-check -->
</div><!--//.mb-3 --> </div><!--//.mb-3 -->
<div class="mb-3">
<label for="comentarios" class="form-label">
<?= lang('Clientes.comentarios') ?>
</label>
<textarea rows="3" id="comentarios" name="comentarios" style="height: 10em;"
class="form-control"><?= old('comentarios', $clienteEntity->comentarios) ?></textarea>
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="isDeleted" class="form-label">
<?= lang('Clientes.isDeleted') ?>*
</label>
<input type="number" id="isDeleted" name="is_deleted" required placeholder="0" maxLength="4"
class="form-control" value="<?= old('is_deleted', $clienteEntity->is_deleted) ?>">
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="userCreatedId" class="form-label">
<?= lang('Clientes.userCreatedId') ?>*
</label>
<input type="number" id="userCreatedId" name="user_created_id" required placeholder="1" maxLength="10"
class="form-control" value="<?= old('user_created_id', $clienteEntity->user_created_id) ?>">
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="userUpdateId" class="form-label">
<?= lang('Clientes.userUpdateId') ?>*
</label>
<input type="number" id="userUpdateId" name="user_update_id" required placeholder="1" maxLength="10"
class="form-control" value="<?= old('user_update_id', $clienteEntity->user_update_id) ?>">
</div><!--//.mb-3 -->
</div><!--//.col --> </div><!--//.col -->
</div><!-- //.row --> </div><!-- //.row -->

View File

@ -2,6 +2,7 @@
<?= $this->include("themes/_commonPartialsBs/select2bs5") ?> <?= $this->include("themes/_commonPartialsBs/select2bs5") ?>
<?= $this->include("themes/_commonPartialsBs/sweetalert") ?> <?= $this->include("themes/_commonPartialsBs/sweetalert") ?>
<?= $this->extend('themes/backend/vuexy/main/defaultlayout') ?> <?= $this->extend('themes/backend/vuexy/main/defaultlayout') ?>
<?= $this->section("content") ?> <?= $this->section("content") ?>
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
@ -9,21 +10,21 @@
<div class="card-header"> <div class="card-header">
<h3 class="card-title"><?= $boxTitle ?? $pageTitle ?></h3> <h3 class="card-title"><?= $boxTitle ?? $pageTitle ?></h3>
</div><!--//.card-header --> </div><!--//.card-header -->
<form id="maquinaForm" method="post" action="<?= $formAction ?>"> <form id="maquinaForm" class="card-body" method="post" action="<?= $formAction ?>">
<?= csrf_field() ?> <?= csrf_field() ?>
<div class="card-body"> <div class="card-body">
<?= view("themes/_commonPartialsBs/_alertBoxes") ?> <?= view("themes/_commonPartialsBs/_alertBoxes") ?>
<?= !empty($validation->getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?> <?= !empty($validation->getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?>
<?= view("themes/backend/vuexy/form/configuracion/maquinas/_maquinaFormItems") ?> <?= view("themes/backend/vuexy/form/configuracion/maquinas/_maquinaFormItems") ?>
</div><!-- /.card-body --> </div><!-- /.card-body -->
<div class="card-footer"> <div class="py-4">
<input type="submit" <input type="submit"
class="btn btn-primary float-start me-sm-3 me-1" class="btn btn-primary float-start me-sm-3 me-1"
name="save" name="save"
value="<?= lang("Basic.global.Save") ?>" value="<?= lang("Basic.global.Save") ?>"
/> />
<?= anchor(route_to("maquinaList"), lang("Basic.global.Cancel"), ["class" => "btn btn-secondary float-start"]) ?> <?= anchor(route_to("maquinaList"), lang("Basic.global.Cancel"), ["class" => "btn btn-secondary float-start"]) ?>
</div><!-- /.card-footer --> </div><!-- /.card-footer -->
</form> </form>
</div><!-- //.card --> </div><!-- //.card -->
</div><!--//.col --> </div><!--//.col -->
@ -36,7 +37,7 @@
<div class="card accordion-item active"> <div class="card accordion-item active">
<h2 class="accordion-header" id="headingOne"> <h2 class="accordion-header" id="headingOne">
<button type="button" class="accordion-button" data-bs-toggle="collapse" data-bs-target="#accordionTip1" aria-expanded="false" aria-controls="accordionTip1"> <button type="button" class="accordion-button" data-bs-toggle="collapse" data-bs-target="#accordionTip1" aria-expanded="false" aria-controls="accordionTip1">
<p><?= lang("MaquinasTarifasImpresions.moduleTitle") ?></p> <h3><?= lang("MaquinasTarifasImpresions.moduleTitle") ?></h3>
</button> </button>
</h2> </h2>
@ -68,13 +69,12 @@
<div class="card accordion-item active"> <div class="card accordion-item active">
<h2 class="accordion-header" id="headingOne"> <h2 class="accordion-header" id="headingOne">
<button type="button" class="accordion-button" data-bs-toggle="collapse" data-bs-target="#accordionTip2" aria-expanded="false" aria-controls="accordionTip2"> <button type="button" class="accordion-button" data-bs-toggle="collapse" data-bs-target="#accordionTip2" aria-expanded="false" aria-controls="accordionTip2">
<p><?= lang("MaquinasTarifasImpresions.moduleTitle") ?></p> <h3><?= lang("MaquinasTarifasImpresions.moduleTitle") ?></h3>
</button> </button>
</h2> </h2>
<div id="accordionTip2" class="accordion-collapse collapse show" data-bs-parent="#accordianPapelesImpresion"> <div id="accordionTip2" class="accordion-collapse collapse show" data-bs-parent="#accordianPapelesImpresion">
<div class="accordion-body"> <div class="accordion-body">
<table id="tableOfPapelesImpresion" class="table table-striped table-hover" style="width: 100%;"> <table id="tableOfPapelesImpresion" class="table table-striped table-hover" style="width: 100%;">
<thead> <thead>
<tr> <tr>
@ -174,7 +174,6 @@
}); });
$('#padreId').select2({ $('#padreId').select2({
theme: 'bootstrap-5',
allowClear: false, allowClear: false,
ajax: { ajax: {
url: '<?= route_to("menuItemsOfMaquinas") ?>', url: '<?= route_to("menuItemsOfMaquinas") ?>',
@ -365,7 +364,7 @@
searching: false, searching: false,
paging: true, paging: true,
info: false, info: false,
dom: "Blt", dom: '<"mt-4"><"float-end"B><"float-start"l><t>', //"Blt",
ajax : $.fn.dataTable.pipeline( { ajax : $.fn.dataTable.pipeline( {
url: '<?= route_to('dataTableOfMaquinasTarifasImpresion') ?>', url: '<?= route_to('dataTableOfMaquinasTarifasImpresion') ?>',
data: { data: {

View File

@ -1,26 +1,29 @@
<div class="row"> <div class="row">
<div class="col-md-12 col-lg-12 px-4"> <div class="col-md-12 col-lg-12 px-4">
<div class="mb-3"> <div class="mb-3">
<label for="nombre" class="form-label"> <label for="nombre" class="form-label">
<?=lang('Tarifaacabado.nombre') ?>* <?= lang('Tarifaacabado.nombre') ?>*
</label> </label>
<input type="text" id="nombre" name="nombre" required maxLength="255" class="form-control" value="<?=old('nombre', $tarifaacabadoEntity->nombre) ?>"> <input type="text" id="nombre" name="nombre" required maxLength="255" class="form-control"
</div><!--//.mb-3 --> value="<?= old('nombre', $tarifaacabadoEntity->nombre) ?>">
</div><!--//.mb-3 -->
<div class="mb-3"> <div class="mb-3">
<label for="nombre" class="form-label"> <label for="nombre" class="form-label">
<?=lang('Tarifaacabado.precioMin') ?>* <?= lang('Tarifaacabado.precioMin') ?>*
</label> </label>
<input type="text" id="precio_min" name="precio_min" required class="form-control" value="<?=old('precio_min', $tarifaacabadoEntity->precio_min) ?>"> <input type="text" id="precio_min" name="precio_min" required class="form-control"
</div><!--//.mb-3 --> value="<?= old('precio_min', $tarifaacabadoEntity->precio_min) ?>">
</div><!--//.mb-3 -->
<div class="mb-3"> <div class="mb-3">
<label for="nombre" class="form-label"> <label for="nombre" class="form-label">
<?=lang('Tarifaacabado.importeFijo') ?>* <?= lang('Tarifaacabado.importeFijo') ?>*
</label> </label>
<input type="text" id="importe_fijo" name="importe_fijo" required class="form-control" value="<?=old('importe_fijo', $tarifaacabadoEntity->importe_fijo) ?>"> <input type="text" id="importe_fijo" name="importe_fijo" required class="form-control"
</div><!--//.mb-3 --> value="<?= old('importe_fijo', $tarifaacabadoEntity->importe_fijo) ?>">
</div><!--//.mb-3 -->
</div><!--//.col --> </div><!--//.col -->
</div><!-- //.row --> </div><!-- //.row -->

View File

@ -17,8 +17,6 @@
<thead> <thead>
<tr> <tr>
<th><?= lang('Tarifaacabado.nombre') ?></th> <th><?= lang('Tarifaacabado.nombre') ?></th>
<th><?= lang('Tarifaacabado.precioMin') ?></th>
<th><?= lang('Tarifaacabado.importeFijo') ?></th>
<th class="text-nowrap"><?= lang('Basic.global.Action') ?></th> <th class="text-nowrap"><?= lang('Basic.global.Action') ?></th>
</tr> </tr>
</thead> </thead>
@ -117,8 +115,6 @@
], ],
columns : [ columns : [
{ 'data': 'nombre' }, { 'data': 'nombre' },
{ 'data': 'precio_min' },
{ 'data': 'importe_fijo' },
{ 'data': actionBtns } { 'data': actionBtns }
] ]
}); });

View File

@ -7,6 +7,20 @@
<input type="text" id="nombre" name="nombre" required maxLength="255" class="form-control" value="<?=old('nombre', $tarifaManipuladoEntity->nombre) ?>"> <input type="text" id="nombre" name="nombre" required maxLength="255" class="form-control" value="<?=old('nombre', $tarifaManipuladoEntity->nombre) ?>">
</div><!--//.mb-3 --> </div><!--//.mb-3 -->
<div class="mb-3">
<label for="nombre" class="form-label">
<?=lang('Tarifamanipulado.precioMin') ?>*
</label>
<input type="text" id="precio_min" name="precio_min" required class="form-control" value="<?=old('precio_min', $tarifaManipuladoEntity->precio_min) ?>">
</div><!--//.mb-3 -->
<div class="mb-3">
<label for="nombre" class="form-label">
<?=lang('Tarifamanipulado.importeFijo') ?>*
</label>
<input type="text" id="importe_fijo" name="importe_fijo" required class="form-control" value="<?=old('importe_fijo', $tarifaManipuladoEntity->importe_fijo) ?>">
</div><!--//.mb-3 -->
</div><!--//.col --> </div><!--//.col -->
</div><!-- //.row --> </div><!-- //.row -->

View File

@ -1,33 +1,64 @@
<div class="row"> <div class="row">
<div class="col-md-12 col-lg-12 px-4"> <div class="col-md-12 col-lg-12 px-4">
<div class="mb-3"> <div class="mb-3">
<label for="nombre" class="form-label"> <label for="nombre" class="form-label">
<?=lang('Tarifapreimpresion.nombre') ?>* <?= lang('Tarifapreimpresion.nombre') ?>*
</label> </label>
<input type="text" id="nombre" name="nombre" required maxLength="255" class="form-control" value="<?=old('nombre', $tarifapreimpresionEntity->nombre) ?>"> <input
</div><!--//.mb-3 --> type="text"
id="nombre"
name="nombre"
required
maxLength="255"
class="form-control"
value="<?= old('nombre', $tarifapreimpresionEntity->nombre) ?>"
>
</div><!--//.mb-3 -->
<div class="mb-3"> <div class="mb-3">
<label for="precio" class="form-label"> <label for="precio" class="form-label">
<?=lang('Tarifapreimpresion.precio') ?>* <?= lang('Tarifapreimpresion.precio') ?>*
</label> </label>
<input type="number" id="precio" name="precio" required maxLength="31" step="0.01" class="form-control" value="<?=old('precio', $tarifapreimpresionEntity->precio) ?>"> <input
</div><!--//.mb-3 --> type="number"
<?php /* id="precio"
<div class="mb-3"> name="precio"
<label for="userCreatedId" class="form-label"> required
<?=lang('Tarifapreimpresion.userCreatedId') ?>* maxLength="31"
</label> step="0.01"
<input type="number" id="userCreatedId" name="user_created_id" required placeholder="1" maxLength="10" class="form-control" value="<?=old('user_created_id', $tarifapreimpresionEntity->user_created_id) ?>"> class="form-control"
</div><!--//.mb-3 --> value="<?= old('precio', $tarifapreimpresionEntity->precio) ?>"
>
</div><!--//.mb-3 -->
<div class="mb-3"> <div class="mb-3">
<label for="userUpdateId" class="form-label"> <label for="nombre" class="form-label">
<?=lang('Tarifapreimpresion.userUpdateId') ?>* <?= lang('Tarifapreimpresion.precioMin') ?>*
</label> </label>
<input type="number" id="userUpdateId" name="user_updated_id" required placeholder="1" maxLength="10" class="form-control" value="<?=old('user_updated_id', $tarifapreimpresionEntity->user_updated_id) ?>"> <input
</div><!--//.mb-3 --> type="text"
*/ ?> id="precio_min"
</div><!--//.col --> name="precio_min"
required
class="form-control"
value="<?= old('precio_min', $tarifapreimpresionEntity->precio_min) ?>"
>
</div><!--//.mb-3 -->
</div><!-- //.row --> <div class="mb-3">
<label for="nombre" class="form-label">
<?= lang('Tarifapreimpresion.importeFijo') ?>*
</label>
<input
type="text"
id="importe_fijo"
name="importe_fijo"
required
class="form-control"
value="<?= old('importe_fijo', $tarifapreimpresionEntity->importe_fijo) ?>"
>
</div><!--//.mb-3 -->
</div><!--//.col -->
</div><!-- //.row -->

View File

@ -451,13 +451,22 @@
* MENU CONFIGURACION * MENU CONFIGURACION
*/ */
if (allowMenuSection($menus, if (allowMenuSection($menus,
['Calendario', 'Paises', 'Users', 'Group', 'Papelesgenericos', 'Papelesimpresion', 'Maquina'], 'index')): ?> ['Calendario', 'Paises', 'Users', 'Group', 'Papelesgenericos', 'Papelesimpresion', 'Maquinas'], 'index')): ?>
<li class="menu-item"> <li class="menu-item">
<a href="javascript:void(0);" class="menu-link menu-toggle"> <a href="javascript:void(0);" class="menu-link menu-toggle">
<i class="menu-icon tf-icons ti ti-adjustments-horizontal"></i> <i class="menu-icon tf-icons ti ti-adjustments-horizontal"></i>
<div data-i18n="<?= lang("App.menu_configuration") ?>"><?= lang("App.menu_configuration") ?></div> <div data-i18n="<?= lang("App.menu_configuration") ?>"><?= lang("App.menu_configuration") ?></div>
</a> </a>
<ul class="menu-sub"> <ul class="menu-sub">
<?php if (count($temp = getArrayItem($menus, 'name', 'Maquinas')) > 0): ?>
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
<li class="menu-item">
<a href="<?= site_url("configuracion/maquinas") ?>" class="menu-link">
<div data-i18n="<?= lang("App.menu_maquina") ?>"><?= lang("App.menu_maquina") ?></div>
</a>
</li>
<?php endif; ?>
<?php endif; ?>
<?php if (count($temp = getArrayItem($menus, 'name', 'Calendario')) > 0): ?> <?php if (count($temp = getArrayItem($menus, 'name', 'Calendario')) > 0): ?>
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?> <?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
<li class="menu-item"> <li class="menu-item">
@ -512,15 +521,6 @@
</li> </li>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
<?php if (count($temp = getArrayItem($menus, 'name', 'Maquina')) > 0): ?>
<?php if (count(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
<li class="menu-item">
<a href="<?= site_url("configuracion/maquina") ?>" class="menu-link">
<div data-i18n="<?= lang("App.menu_maquina") ?>"><?= lang("App.menu_maquina") ?></div>
</a>
</li>
<?php endif; ?>
<?php endif; ?>
</ul> </ul>
</li> </li>
<?php endif; ?> <?php endif; ?>

11
git-commands.txt Normal file
View File

@ -0,0 +1,11 @@
Crear nueva rama:
git checkout -b dev/nombre_rama
Reflejar nueva rama en repositorio remoto
git push --set-upstream origin dev/nombre_rama
Commit con mensaje
git commit -am "<mensaje>"
Subir cambios de un commit
git push