mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Revision UI Maquinas e iniciada UI clientes para revision con JM
This commit is contained in:
9
ci4/.env
9
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
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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",
|
||||
];
|
||||
}
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
return [
|
||||
'ajuste' => 'Ajuste',
|
||||
'createdAt' => 'Creado en',
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
return [
|
||||
'ajuste' => 'Ajuste',
|
||||
'ajusteTotalPedido' => 'Ajuste Total Pedido',
|
||||
@ -13,6 +12,7 @@ return [
|
||||
'nombre' => 'Nombre',
|
||||
'precioMax' => 'Precio Max',
|
||||
'precioMin' => 'Precio Min',
|
||||
'importeFijo' => 'Importe Fijo',
|
||||
'tarifamanipulado' => 'Tarifa Manipulado',
|
||||
'tarifamanipuladoList' => 'Lista Tarifas Manipulado',
|
||||
'tarifasmanipulado' => 'Tarifas Manipulado',
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
return [
|
||||
'createdAt' => 'Creado en',
|
||||
'deletedAt' => 'Borrado en',
|
||||
@ -9,6 +8,8 @@ return [
|
||||
'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',
|
||||
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@ -15,6 +15,8 @@ class TarifapreimpresionModel extends \App\Models\GoBaseModel
|
||||
protected $allowedFields = [
|
||||
"nombre",
|
||||
"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",
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
@ -1,92 +1,154 @@
|
||||
<div class="row">
|
||||
<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">
|
||||
<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><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<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="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">
|
||||
<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%;">
|
||||
|
||||
<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' : '' ?>>
|
||||
@ -95,30 +157,90 @@
|
||||
<?php endforeach;
|
||||
endif; ?>
|
||||
</select>
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
</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><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<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><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<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') ?>*
|
||||
<?= lang('Clientes.comercialId') ?>
|
||||
</label>
|
||||
<select id="comercialId" name="comercial_id" required class="form-control select2" style="width: 100%;">
|
||||
|
||||
<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' : '' ?>>
|
||||
@ -127,14 +249,17 @@
|
||||
<?php endforeach;
|
||||
endif; ?>
|
||||
</select>
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="soporteId" class="form-label">
|
||||
<?= lang('Clientes.soporteId') ?>*
|
||||
<?= lang('Clientes.soporteId') ?>
|
||||
</label>
|
||||
<select id="soporteId" name="soporte_id" required class="form-control select2" style="width: 100%;">
|
||||
|
||||
<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' : '' ?>>
|
||||
@ -143,14 +268,40 @@
|
||||
<?php endforeach;
|
||||
endif; ?>
|
||||
</select>
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
</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%;">
|
||||
|
||||
<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' : '' ?>>
|
||||
@ -159,24 +310,212 @@
|
||||
<?php endforeach;
|
||||
endif; ?>
|
||||
</select>
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="vencimiento" class="form-label">
|
||||
<?= lang('Clientes.vencimiento') ?>*
|
||||
<?= 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">
|
||||
<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) ?>">
|
||||
<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="col-md-12 col-lg-6 px-4">
|
||||
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="margen" class="form-label">
|
||||
<?= lang('Clientes.margen') ?>*
|
||||
@ -201,15 +540,7 @@
|
||||
class="form-control" value="<?= old('descuento', $clienteEntity->descuento) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<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 -->
|
||||
|
||||
<?php /* A implementar en el controller
|
||||
<div class="mb-3">
|
||||
<label for="limiteCreditoUserId" class="form-label">
|
||||
<?= lang('Clientes.limiteCreditoUserId') ?>*
|
||||
@ -228,6 +559,8 @@
|
||||
value="<?= old('limite_credito_change_at', $clienteEntity->limite_credito_change_at) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
*/ ?>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="creditoSolunion" class="form-label">
|
||||
<?= lang('Clientes.creditoSolunion') ?>
|
||||
@ -238,103 +571,6 @@
|
||||
|
||||
</div><!--//.col -->
|
||||
<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">
|
||||
<label for="saturacion" class="form-label">
|
||||
<?= lang('Clientes.saturacion') ?>*
|
||||
@ -386,38 +622,10 @@
|
||||
</div><!--//.form-check -->
|
||||
</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><!-- //.row -->
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,223 +1,142 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-lg-12 px-4">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-4 col-lg-4 px-4">
|
||||
<div class="mb-3">
|
||||
<h6>Datos de la Máquina</h6>
|
||||
<div class="row g-3">
|
||||
<div class="col-md-3">
|
||||
<label for="nombre" class="form-label">
|
||||
<?= lang('Maquinas.nombre') ?>*
|
||||
</label>
|
||||
<input type="text" id="nombre" name="nombre" required maxLength="255" class="form-control" value="<?=old('nombre', $maquina->nombre) ?>">
|
||||
</div><!--//.col -->
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<input type="text" id="nombre" name="nombre" required maxLength="255" class="form-control"
|
||||
value="<?= old('nombre', $maquina->nombre) ?>">
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<label for="min" class="form-label">
|
||||
<?= lang('Maquinas.min') ?>*
|
||||
</label>
|
||||
<input type="number" id="min" name="min" required placeholder="1" maxLength="11" class="form-control" value="<?=old('min', $maquina->min) ?>">
|
||||
<input type="number" id="min" name="min" required placeholder="1" maxLength="11"
|
||||
class="form-control" value="<?= old('min', $maquina->min) ?>">
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<div class="col-md-2">
|
||||
<label for="max" class="form-label">
|
||||
<?= lang('Maquinas.max') ?>*
|
||||
</label>
|
||||
<input type="number" id="max" name="max" required placeholder="1000000" maxLength="11" class="form-control" value="<?=old('max', $maquina->max) ?>">
|
||||
<input type="number" id="max" name="max" required placeholder="1000000" maxLength="11"
|
||||
class="form-control" value="<?= old('max', $maquina->max) ?>">
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<div class="col-md-2">
|
||||
<label for="velocidad" class="form-label">
|
||||
<?= lang('Maquinas.velocidad') ?>*
|
||||
</label>
|
||||
<input type="number" id="velocidad" name="velocidad" required placeholder="0.00" maxLength="8" step="0.01" class="form-control" value="<?=old('velocidad', $maquina->velocidad) ?>">
|
||||
<input type="number" id="velocidad" name="velocidad" required placeholder="0.00" maxLength="8"
|
||||
step="0.01" class="form-control" value="<?= old('velocidad', $maquina->velocidad) ?>">
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<div class="col-md-3">
|
||||
<label for="tipo" class="form-label">
|
||||
<?= lang('Maquinas.tipo') ?>*
|
||||
</label>
|
||||
<select id="tipo" name="tipo" required class="form-control select2bs" style="width: 100%;" >
|
||||
<select id="tipo" name="tipo" required class="form-control select2" style="width: 100%;">
|
||||
<option value="" selected="selected"><?= lang('Basic.global.pleaseSelectOne') ?></option>
|
||||
<option value="impresion"<?= $maquina->tipo == 'impresion' ? ' selected' : '' ?>><?= lang('Maquinas.impresion') ?></option>
|
||||
<option value="manipulado"<?= $maquina->tipo == 'manipulado' ? ' selected' : '' ?>><?= lang('Maquinas.manipulado') ?></option>
|
||||
<option value="acabado"<?= $maquina->tipo == 'acabado' ? ' selected' : '' ?>><?= lang('Maquinas.acabado') ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
|
||||
</div><!--//.row -->
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<!--Propiedades-->
|
||||
<div class="col-md-2">
|
||||
<label for="ancho" class="form-label">
|
||||
<?= lang('Maquinas.ancho') ?>*
|
||||
</label>
|
||||
<input type="number" id="ancho" name="ancho" maxLength="8" step="0.01" class="form-control" value="<?=old('ancho', $maquina->ancho) ?>">
|
||||
<input type="number" id="ancho" name="ancho" maxLength="8" step="0.01" class="form-control"
|
||||
value="<?= old('ancho', $maquina->ancho) ?>">
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<div class="col-md-2">
|
||||
<label for="alto" class="form-label">
|
||||
<?= lang('Maquinas.alto') ?>*
|
||||
</label>
|
||||
<input type="number" id="alto" name="alto" maxLength="8" step="0.01" class="form-control" value="<?=old('alto', $maquina->alto) ?>">
|
||||
<input type="number" id="alto" name="alto" maxLength="8" step="0.01" class="form-control"
|
||||
value="<?= old('alto', $maquina->alto) ?>">
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<div class="col-md-3">
|
||||
<label for="anchoImpresion" class="form-label">
|
||||
<?= lang('Maquinas.anchoImpresion') ?>*
|
||||
</label>
|
||||
<input type="number" id="anchoImpresion" name="ancho_impresion" required placeholder="0.00" maxLength="8" step="0.01" class="form-control" value="<?=old('ancho_impresion', $maquina->ancho_impresion) ?>">
|
||||
<input type="number" id="anchoImpresion" name="ancho_impresion" required placeholder="0.00"
|
||||
maxLength="8" step="0.01" class="form-control"
|
||||
value="<?= old('ancho_impresion', $maquina->ancho_impresion) ?>">
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<div class="col-md-3">
|
||||
<label for="altoImpresion" class="form-label">
|
||||
<?= lang('Maquinas.altoImpresion') ?>*
|
||||
</label>
|
||||
<input type="number" id="altoImpresion" name="alto_impresion" required placeholder="0.00" maxLength="8" step="0.01" class="form-control" value="<?=old('alto_impresion', $maquina->alto_impresion) ?>">
|
||||
<input type="number" id="altoImpresion" name="alto_impresion" required placeholder="0.00"
|
||||
maxLength="8" step="0.01" class="form-control"
|
||||
value="<?= old('alto_impresion', $maquina->alto_impresion) ?>">
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<div class="col-md-2">
|
||||
<label for="altoClick" class="form-label">
|
||||
<?= lang('Maquinas.altoClick') ?>*
|
||||
</label>
|
||||
<input type="number" id="altoClick" name="alto_click" required placeholder="0.00" maxLength="8" step="0.01" class="form-control" value="<?=old('alto_click', $maquina->alto_click) ?>">
|
||||
<input type="number" id="altoClick" name="alto_click" required placeholder="0.00" maxLength="8"
|
||||
step="0.01" class="form-control" value="<?= old('alto_click', $maquina->alto_click) ?>">
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
|
||||
</div><!--//.row -->
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<!--Produccion-->
|
||||
<div class="col-md-3">
|
||||
<label for="duracionJornada" class="form-label">
|
||||
<?= lang('Maquinas.duracionJornada') ?>*
|
||||
</label>
|
||||
<input type="number" id="duracionJornada" name="duracion_jornada" required placeholder="8" maxLength="11" class="form-control" value="<?=old('duracion_jornada', $maquina->duracion_jornada) ?>">
|
||||
<input type="number" id="duracionJornada" name="duracion_jornada" required placeholder="8"
|
||||
maxLength="11" class="form-control"
|
||||
value="<?= old('duracion_jornada', $maquina->duracion_jornada) ?>">
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<div class="col-md-3">
|
||||
<label for="ordenPlanning" class="form-label">
|
||||
<?= lang('Maquinas.ordenPlanning') ?>*
|
||||
</label>
|
||||
<input type="number" id="ordenPlanning" name="orden_planning" required placeholder="1" maxLength="11" class="form-control" value="<?=old('orden_planning', $maquina->orden_planning) ?>">
|
||||
<input type="number" id="ordenPlanning" name="orden_planning" required placeholder="1"
|
||||
maxLength="11" class="form-control"
|
||||
value="<?= old('orden_planning', $maquina->orden_planning) ?>">
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<div class="col-md-3">
|
||||
<label for="forzarNumFormasHorizontalesPortada" class="form-label">
|
||||
<?= lang('Maquinas.forzarNumFormasHorizontalesPortada') ?>
|
||||
</label>
|
||||
<input type="number" id="forzarNumFormasHorizontalesPortada" name="forzar_num_formas_horizontales_portada" maxLength="11" class="form-control" value="<?=old('forzar_num_formas_horizontales_portada', $maquina->forzar_num_formas_horizontales_portada) ?>">
|
||||
<input type="number" id="forzarNumFormasHorizontalesPortada"
|
||||
name="forzar_num_formas_horizontales_portada" maxLength="11" class="form-control"
|
||||
value="<?= old('forzar_num_formas_horizontales_portada', $maquina->forzar_num_formas_horizontales_portada) ?>">
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<div class="col-md-3">
|
||||
<label for="forzarNumFormasVerticalesPortada" class="form-label">
|
||||
<?= lang('Maquinas.forzarNumFormasVerticalesPortada') ?>
|
||||
</label>
|
||||
<input type="number" id="forzarNumFormasVerticalesPortada" name="forzar_num_formas_verticales_portada" maxLength="11" class="form-control" value="<?=old('forzar_num_formas_verticales_portada', $maquina->forzar_num_formas_verticales_portada) ?>">
|
||||
<input type="number" id="forzarNumFormasVerticalesPortada"
|
||||
name="forzar_num_formas_verticales_portada" maxLength="11" class="form-control"
|
||||
value="<?= old('forzar_num_formas_verticales_portada', $maquina->forzar_num_formas_verticales_portada) ?>">
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-1 px-6">
|
||||
<div class="mb-3">
|
||||
<label for="isTinta" class="form-label">
|
||||
<?=lang('Maquinas.isRotativa') ?>
|
||||
<div class="col-md-12">
|
||||
<label for="observaciones" class="form-label">
|
||||
<?= lang('Maquinas.observaciones') ?>
|
||||
</label>
|
||||
<div class="form-check">
|
||||
<label for="isRotativa" class="form-check-label">
|
||||
<input type="checkbox" id="isRotativa" name="is_rotativa" value="1" class="form-check-input"<?=$maquina->is_rotativa== true ? 'checked' : ''; ?>>
|
||||
</label>
|
||||
</div><!--//.form-check -->
|
||||
<textarea rows="3" id="observaciones" name="observaciones"
|
||||
class="form-control">
|
||||
<?= old('observaciones', $maquina->observaciones) ?>
|
||||
</textarea>
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-1 px-6">
|
||||
<div class="mb-3">
|
||||
<label for="isTinta" class="form-label">
|
||||
<?=lang('Maquinas.isTinta') ?>
|
||||
</label>
|
||||
<div class="form-check">
|
||||
<label for="isTinta" class="form-check-label">
|
||||
<input type="checkbox" id="isTinta" name="is_tinta" value="1" class="form-check-input"<?=$maquina->is_tinta== true ? 'checked' : ''; ?>>
|
||||
</label>
|
||||
</div><!--//.form-check -->
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-2 px-6">
|
||||
<div class="mb-3">
|
||||
<label for="isPadre" class="form-label">
|
||||
<div class="col-md-3 mt-4 mb-4">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="checkbox"
|
||||
id="isPadre"
|
||||
name="is_padre"
|
||||
value="1"
|
||||
class="form-check-input"<?= $maquina->is_padre == true ? 'checked' : ''; ?>
|
||||
>
|
||||
<label for="isPadre" class="form-check-label">
|
||||
<?= lang('Maquinas.isPadre') ?>
|
||||
</label>
|
||||
<div class="form-check">
|
||||
<label for="isPadre" class="form-check-label">
|
||||
<input type="checkbox" id="isPadre" name="is_padre" value="1" class="form-check-input"<?=$maquina->is_padre== true ? 'checked' : ''; ?>>
|
||||
</label>
|
||||
</div><!--//.form-check -->
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
|
||||
|
||||
</div><!--//.row -->
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
|
||||
</div><!--//.col -->
|
||||
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
|
||||
</div><!--//.col -->
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div id="selectVariante" class="mb-3" style="display:none">
|
||||
<label for="padreId" class="form-label">
|
||||
<?=lang('Maquinas.padreId') ?>
|
||||
</label>
|
||||
|
||||
<select id="padreId" name="padre_id" class="form-control select2bs2" style="width: 100%;" >
|
||||
</div>
|
||||
<div id="selectVariante" class="col-md-3" style="display:none">
|
||||
<select id="padreId" name="padre_id" class="form-control select2" style="width: 100%;">
|
||||
<?php if (isset($maquinaList) && is_array($maquinaList) && !empty($maquinaList)) :
|
||||
foreach ($maquinaList as $k => $v) : ?>
|
||||
<option value="<?= $k ?>"<?= $k == $maquina->padre_id ? ' selected' : '' ?>>
|
||||
@ -227,73 +146,78 @@
|
||||
endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div><!--//.col -->
|
||||
<div class="col-md-3 mt-4 mb-4">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="checkbox"
|
||||
id="isRotativa"
|
||||
name="is_rotativa"
|
||||
value="1"
|
||||
class="form-check-input"<?= $maquina->is_rotativa == true ? 'checked' : ''; ?>
|
||||
>
|
||||
<label for="isPadre" class="form-check-label">
|
||||
<?= lang('Maquinas.isRotativa') ?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div><!--//.row -->
|
||||
<div class="col-md-3 mt-4 mb-4">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="checkbox"
|
||||
id="isTinta"
|
||||
name="is_tinta"
|
||||
value="1"
|
||||
class="form-check-input"<?= $maquina->is_tinta == true ? 'checked' : ''; ?>
|
||||
>
|
||||
<label for="isPadre" class="form-check-label">
|
||||
<?= lang('Maquinas.isTinta') ?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($maquina->is_rotativa == false): ?>
|
||||
<div class="row" id="datosRotativa" style="display:none">
|
||||
<?php else: ?>
|
||||
<div class="row" id="datosRotativa">
|
||||
<?php endif; ?>
|
||||
<div class="col-lg-2 px-4">
|
||||
|
||||
<div class="mb-3">
|
||||
<div class="col-md-2">
|
||||
<label for="precioTintaNegro" class="form-label">
|
||||
<?= lang('Maquinas.precioTintaNegro') ?>
|
||||
</label>
|
||||
<input type="number" id="precioTintaNegro" name="precio_tinta_negro" placeholder="0.00" maxLength="8" step="0.01" class="form-control" value="<?=old('precio_tinta_negro', $maquina->precio_tinta_negro) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
<input type="number" id="precioTintaNegro" name="precio_tinta_negro" placeholder="0.00"
|
||||
maxLength="8" step="0.01" class="form-control"
|
||||
value="<?= old('precio_tinta_negro', $maquina->precio_tinta_negro) ?>">
|
||||
</div>
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<div class="col-md-2">
|
||||
<label for="precioTintaColor" class="form-label">
|
||||
<?= lang('Maquinas.precioTintaColor') ?>
|
||||
</label>
|
||||
<input type="number" id="precioTintaColor" name="precio_tinta_color" placeholder="0.00" maxLength="8" step="0.01" class="form-control" value="<?=old('precio_tinta_color', $maquina->precio_tinta_color) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
<input type="number" id="precioTintaColor" name="precio_tinta_color" placeholder="0.00"
|
||||
maxLength="8" step="0.01" class="form-control"
|
||||
value="<?= old('precio_tinta_color', $maquina->precio_tinta_color) ?>">
|
||||
</div>
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<div class="col-md-2">
|
||||
<label for="velocidadCorte" class="form-label">
|
||||
<?= lang('Maquinas.velocidadCorte') ?>
|
||||
</label>
|
||||
<input type="number" id="velocidadCorte" name="velocidad_corte" placeholder="0.00" maxLength="8" step="0.01" class="form-control" value="<?=old('velocidad_corte', $maquina->velocidad_corte) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
<input type="number" id="velocidadCorte" name="velocidad_corte" placeholder="0.00" maxLength="8"
|
||||
step="0.01" class="form-control"
|
||||
value="<?= old('velocidad_corte', $maquina->velocidad_corte) ?>">
|
||||
</div>
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<div class="col-md-2">
|
||||
<label for="precioHoraCorte" class="form-label">
|
||||
<?= lang('Maquinas.precioHoraCorte') ?>
|
||||
</label>
|
||||
<input type="number" id="precioHoraCorte" name="precio_hora_corte" placeholder="0.00" maxLength="8" step="0.01" class="form-control" value="<?=old('precio_hora_corte', $maquina->precio_hora_corte) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
<input type="number" id="precioHoraCorte" name="precio_hora_corte" placeholder="0.00"
|
||||
maxLength="8" step="0.01" class="form-control"
|
||||
value="<?= old('precio_hora_corte', $maquina->precio_hora_corte) ?>">
|
||||
</div>
|
||||
|
||||
<div class="col-lg-2 px-4">
|
||||
<div class="mb-3">
|
||||
<div class="col-md-2">
|
||||
<label for="metrosxminuto" class="form-label">
|
||||
<?= lang('Maquinas.metrosxminuto') ?>
|
||||
</label>
|
||||
<input type="number" id="metrosxminuto" name="metrosxminuto" placeholder="48" maxLength="31" step="0.01" class="form-control" value="<?=old('metrosxminuto', $maquina->metrosxminuto) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
</div><!--//.col -->
|
||||
<input type="number" id="metrosxminuto" name="metrosxminuto" placeholder="48" maxLength="31"
|
||||
step="0.01" class="form-control"
|
||||
value="<?= old('metrosxminuto', $maquina->metrosxminuto) ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-12 px-4">
|
||||
<label for="observaciones" class="form-label">
|
||||
<?=lang('Maquinas.observaciones') ?>
|
||||
</label>
|
||||
<textarea rows="2" id="observaciones" name="observaciones" style="height: 5em;" class="form-control"><?=old('observaciones', $maquina->observaciones) ?></textarea>
|
||||
</div><!--//.col -->
|
||||
</div><!--//.row -->
|
||||
|
||||
|
||||
</div><!--//.col -->
|
||||
|
||||
</div><!-- //.row -->
|
||||
@ -2,6 +2,7 @@
|
||||
<?= $this->include("themes/_commonPartialsBs/select2bs5") ?>
|
||||
<?= $this->include("themes/_commonPartialsBs/sweetalert") ?>
|
||||
<?= $this->extend('themes/backend/vuexy/main/defaultlayout') ?>
|
||||
|
||||
<?= $this->section("content") ?>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
@ -9,14 +10,14 @@
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><?= $boxTitle ?? $pageTitle ?></h3>
|
||||
</div><!--//.card-header -->
|
||||
<form id="maquinaForm" method="post" action="<?= $formAction ?>">
|
||||
<form id="maquinaForm" class="card-body" method="post" action="<?= $formAction ?>">
|
||||
<?= csrf_field() ?>
|
||||
<div class="card-body">
|
||||
<?= view("themes/_commonPartialsBs/_alertBoxes") ?>
|
||||
<?= !empty($validation->getErrors()) ? $validation->listErrors("bootstrap_style") : "" ?>
|
||||
<?= view("themes/backend/vuexy/form/configuracion/maquinas/_maquinaFormItems") ?>
|
||||
</div><!-- /.card-body -->
|
||||
<div class="card-footer">
|
||||
<div class="py-4">
|
||||
<input type="submit"
|
||||
class="btn btn-primary float-start me-sm-3 me-1"
|
||||
name="save"
|
||||
@ -36,7 +37,7 @@
|
||||
<div class="card accordion-item active">
|
||||
<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">
|
||||
<p><?= lang("MaquinasTarifasImpresions.moduleTitle") ?></p>
|
||||
<h3><?= lang("MaquinasTarifasImpresions.moduleTitle") ?></h3>
|
||||
</button>
|
||||
</h2>
|
||||
|
||||
@ -68,13 +69,12 @@
|
||||
<div class="card accordion-item active">
|
||||
<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">
|
||||
<p><?= lang("MaquinasTarifasImpresions.moduleTitle") ?></p>
|
||||
<h3><?= lang("MaquinasTarifasImpresions.moduleTitle") ?></h3>
|
||||
</button>
|
||||
</h2>
|
||||
|
||||
<div id="accordionTip2" class="accordion-collapse collapse show" data-bs-parent="#accordianPapelesImpresion">
|
||||
<div class="accordion-body">
|
||||
|
||||
<table id="tableOfPapelesImpresion" class="table table-striped table-hover" style="width: 100%;">
|
||||
<thead>
|
||||
<tr>
|
||||
@ -174,7 +174,6 @@
|
||||
});
|
||||
|
||||
$('#padreId').select2({
|
||||
theme: 'bootstrap-5',
|
||||
allowClear: false,
|
||||
ajax: {
|
||||
url: '<?= route_to("menuItemsOfMaquinas") ?>',
|
||||
@ -368,7 +367,7 @@
|
||||
searching: false,
|
||||
paging: true,
|
||||
info: false,
|
||||
dom: "Blt",
|
||||
dom: '<"mt-4"><"float-end"B><"float-start"l><t>', //"Blt",
|
||||
ajax : $.fn.dataTable.pipeline( {
|
||||
url: '<?= route_to('dataTableOfMaquinasTarifasImpresion') ?>',
|
||||
data: {
|
||||
|
||||
@ -4,21 +4,24 @@
|
||||
<label for="nombre" class="form-label">
|
||||
<?= lang('Tarifaacabado.nombre') ?>*
|
||||
</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"
|
||||
value="<?= old('nombre', $tarifaacabadoEntity->nombre) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="nombre" class="form-label">
|
||||
<?= lang('Tarifaacabado.precioMin') ?>*
|
||||
</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"
|
||||
value="<?= old('precio_min', $tarifaacabadoEntity->precio_min) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="nombre" class="form-label">
|
||||
<?= lang('Tarifaacabado.importeFijo') ?>*
|
||||
</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"
|
||||
value="<?= old('importe_fijo', $tarifaacabadoEntity->importe_fijo) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
</div><!--//.col -->
|
||||
|
||||
@ -17,8 +17,6 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?= lang('Tarifaacabado.nombre') ?></th>
|
||||
<th><?= lang('Tarifaacabado.precioMin') ?></th>
|
||||
<th><?= lang('Tarifaacabado.importeFijo') ?></th>
|
||||
<th class="text-nowrap"><?= lang('Basic.global.Action') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -117,8 +115,6 @@
|
||||
],
|
||||
columns : [
|
||||
{ 'data': 'nombre' },
|
||||
{ 'data': 'precio_min' },
|
||||
{ 'data': 'importe_fijo' },
|
||||
{ 'data': actionBtns }
|
||||
]
|
||||
});
|
||||
|
||||
@ -7,6 +7,20 @@
|
||||
<input type="text" id="nombre" name="nombre" required maxLength="255" class="form-control" value="<?=old('nombre', $tarifaManipuladoEntity->nombre) ?>">
|
||||
</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><!-- //.row -->
|
||||
@ -4,30 +4,61 @@
|
||||
<label for="nombre" class="form-label">
|
||||
<?= lang('Tarifapreimpresion.nombre') ?>*
|
||||
</label>
|
||||
<input type="text" id="nombre" name="nombre" required maxLength="255" class="form-control" value="<?=old('nombre', $tarifapreimpresionEntity->nombre) ?>">
|
||||
<input
|
||||
type="text"
|
||||
id="nombre"
|
||||
name="nombre"
|
||||
required
|
||||
maxLength="255"
|
||||
class="form-control"
|
||||
value="<?= old('nombre', $tarifapreimpresionEntity->nombre) ?>"
|
||||
>
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="precio" class="form-label">
|
||||
<?= lang('Tarifapreimpresion.precio') ?>*
|
||||
</label>
|
||||
<input type="number" id="precio" name="precio" required maxLength="31" step="0.01" class="form-control" value="<?=old('precio', $tarifapreimpresionEntity->precio) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
<?php /*
|
||||
<div class="mb-3">
|
||||
<label for="userCreatedId" class="form-label">
|
||||
<?=lang('Tarifapreimpresion.userCreatedId') ?>*
|
||||
</label>
|
||||
<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) ?>">
|
||||
<input
|
||||
type="number"
|
||||
id="precio"
|
||||
name="precio"
|
||||
required
|
||||
maxLength="31"
|
||||
step="0.01"
|
||||
class="form-control"
|
||||
value="<?= old('precio', $tarifapreimpresionEntity->precio) ?>"
|
||||
>
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="userUpdateId" class="form-label">
|
||||
<?=lang('Tarifapreimpresion.userUpdateId') ?>*
|
||||
<label for="nombre" class="form-label">
|
||||
<?= lang('Tarifapreimpresion.precioMin') ?>*
|
||||
</label>
|
||||
<input type="number" id="userUpdateId" name="user_update_id" required placeholder="1" maxLength="10" class="form-control" value="<?=old('user_update_id', $tarifapreimpresionEntity->user_update_id) ?>">
|
||||
<input
|
||||
type="text"
|
||||
id="precio_min"
|
||||
name="precio_min"
|
||||
required
|
||||
class="form-control"
|
||||
value="<?= old('precio_min', $tarifapreimpresionEntity->precio_min) ?>"
|
||||
>
|
||||
</div><!--//.mb-3 -->
|
||||
*/ ?>
|
||||
|
||||
<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 -->
|
||||
@ -451,13 +451,22 @@
|
||||
* MENU CONFIGURACION
|
||||
*/
|
||||
if (allowMenuSection($menus,
|
||||
['Calendario', 'Paises', 'Users', 'Group', 'Papelesgenericos', 'Papelesimpresion', 'Maquina'], 'index')): ?>
|
||||
['Calendario', 'Paises', 'Users', 'Group', 'Papelesgenericos', 'Papelesimpresion', 'Maquinas'], 'index')): ?>
|
||||
<li class="menu-item">
|
||||
<a href="javascript:void(0);" class="menu-link menu-toggle">
|
||||
<i class="menu-icon tf-icons ti ti-adjustments-horizontal"></i>
|
||||
<div data-i18n="<?= lang("App.menu_configuration") ?>"><?= lang("App.menu_configuration") ?></div>
|
||||
</a>
|
||||
<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(getArrayItem($temp, 'methods', 'index', true)) > 0): ?>
|
||||
<li class="menu-item">
|
||||
@ -512,15 +521,6 @@
|
||||
</li>
|
||||
<?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>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user