mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Reubicados los campos del formulario de clientes
This commit is contained in:
@ -28,7 +28,7 @@
|
||||
Contactos
|
||||
</button>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<li class="nav-item">
|
||||
<button
|
||||
type="button"
|
||||
@ -77,6 +77,7 @@
|
||||
Usuarios
|
||||
</button>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade show active" id="informacion-cliente" role="tabpanel">
|
||||
@ -232,48 +233,11 @@
|
||||
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
|
||||
@ -354,6 +318,7 @@
|
||||
</label>
|
||||
<input type="text" id="numCuenta" name="num_cuenta"
|
||||
maxLength="10" class="form-control"
|
||||
placeholder="Cuenta 4300000 por defecto"
|
||||
value="<?= old('num_cuenta', $clienteEntity->num_cuenta) ?>"
|
||||
>
|
||||
</div>
|
||||
@ -395,6 +360,113 @@
|
||||
</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="#compras_ventas"
|
||||
aria-expanded="false"
|
||||
aria-controls="compras_ventas">
|
||||
Compras / Ventas
|
||||
</button>
|
||||
</h2>
|
||||
<div
|
||||
id="compras_ventas"
|
||||
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-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 class="col-md-6">
|
||||
<label for="margen" class="form-label">
|
||||
<?= lang('Clientes.margen') ?>*
|
||||
</label>
|
||||
<input
|
||||
type="number"
|
||||
id="margen"
|
||||
name="margen"
|
||||
required
|
||||
placeholder="40.00"
|
||||
maxLength="8"
|
||||
step="0.01"
|
||||
class="form-control"
|
||||
value="<?= old('margen', $clienteEntity->margen) ?>"
|
||||
>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="descuento" class="form-label">
|
||||
<?= lang('Clientes.descuento') ?>*
|
||||
</label>
|
||||
<input type="number"
|
||||
id="descuento"
|
||||
name="descuento"
|
||||
required
|
||||
placeholder="0.00"
|
||||
maxLength="8"
|
||||
step="0.01"
|
||||
class="form-control"
|
||||
value="<?= old('descuento', $clienteEntity->descuento) ?>"
|
||||
>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="margenPlantillaId" class="form-label">
|
||||
<?= lang('Clientes.margenPlantillaId') ?>
|
||||
</label>
|
||||
<input type="number"
|
||||
id="margenPlantillaId"
|
||||
name="margen_plantilla_id"
|
||||
maxLength="10"
|
||||
class="form-control"
|
||||
value="<?= old('margen_plantilla_id', $clienteEntity->margen_plantilla_id) ?>"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card accordion-item">
|
||||
<h2 class="accordion-header" id="headingPaymentMethod">
|
||||
<button
|
||||
@ -415,16 +487,7 @@
|
||||
>
|
||||
<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">
|
||||
@ -482,8 +545,20 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex align-items-center pt-3">
|
||||
<div class="d-flex align-items-center">
|
||||
Creado por [<?= $clienteEntity->user_created_id ?>] el <?= $clienteEntity->created_at ?>
|
||||
</div>
|
||||
<div class="ms-auto">
|
||||
Editado por [<?= $clienteEntity->user_update_id ?>] el <?= $clienteEntity->updated_at ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php if ($formAction !== site_url('cliente/add')){ ?>
|
||||
<div class="tab-pane fade" id="contactos" role="tabpanel">
|
||||
<table id="tableOfClienteContactos"
|
||||
@ -502,7 +577,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<div class="tab-pane fade" id="domicilio-entrega" role="tabpanel">
|
||||
<h3>Proximanente</h3>
|
||||
@ -520,134 +595,36 @@
|
||||
<h3>Proximanente</h3>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</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">
|
||||
<?php /* A implementar en el controller
|
||||
<div class="mb-3">
|
||||
<label for="limiteCreditoUserId" class="form-label">
|
||||
<?= lang('Clientes.limiteCreditoUserId') ?>*
|
||||
</label>
|
||||
<input type="number" id="limiteCreditoUserId" name="limite_credito_user_id" required placeholder="1"
|
||||
maxLength="10" class="form-control"
|
||||
value="<?= old('limite_credito_user_id', $clienteEntity->limite_credito_user_id) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="limiteCreditoChangeAt" class="form-label">
|
||||
<?= lang('Clientes.limiteCreditoChangeAt') ?>*
|
||||
</label>
|
||||
<input type="text" id="limiteCreditoChangeAt" name="limite_credito_change_at" required
|
||||
placeholder="2017-02-13 12:38:03" maxLength="20" class="form-control"
|
||||
value="<?= old('limite_credito_change_at', $clienteEntity->limite_credito_change_at) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
*/ ?>
|
||||
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="margen" class="form-label">
|
||||
<?= lang('Clientes.margen') ?>*
|
||||
</label>
|
||||
<input type="number" id="margen" name="margen" required placeholder="40.00" maxLength="8" step="0.01"
|
||||
class="form-control" value="<?= old('margen', $clienteEntity->margen) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="margenPod" class="form-label">
|
||||
<?= lang('Clientes.margenPod') ?>
|
||||
</label>
|
||||
<input type="number" id="margenPod" name="margen_pod" maxLength="8" step="0.01" class="form-control"
|
||||
value="<?= old('margen_pod', $clienteEntity->margen_pod) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="descuento" class="form-label">
|
||||
<?= lang('Clientes.descuento') ?>*
|
||||
</label>
|
||||
<input type="number" id="descuento" name="descuento" required placeholder="0.00" maxLength="8"
|
||||
step="0.01"
|
||||
class="form-control" value="<?= old('descuento', $clienteEntity->descuento) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<?php /* A implementar en el controller
|
||||
<div class="mb-3">
|
||||
<label for="limiteCreditoUserId" class="form-label">
|
||||
<?= lang('Clientes.limiteCreditoUserId') ?>*
|
||||
</label>
|
||||
<input type="number" id="limiteCreditoUserId" name="limite_credito_user_id" required placeholder="1"
|
||||
maxLength="10" class="form-control"
|
||||
value="<?= old('limite_credito_user_id', $clienteEntity->limite_credito_user_id) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="limiteCreditoChangeAt" class="form-label">
|
||||
<?= lang('Clientes.limiteCreditoChangeAt') ?>*
|
||||
</label>
|
||||
<input type="text" id="limiteCreditoChangeAt" name="limite_credito_change_at" required
|
||||
placeholder="2017-02-13 12:38:03" maxLength="20" class="form-control"
|
||||
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') ?>
|
||||
</label>
|
||||
<input type="text" id="creditoSolunion" name="credito_solunion" maxLength="100" class="form-control"
|
||||
value="<?= old('credito_solunion', $clienteEntity->credito_solunion) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
</div><!--//.col -->
|
||||
<div class="col-md-12 col-lg-6 px-4">
|
||||
<div class="mb-3">
|
||||
<label for="saturacion" class="form-label">
|
||||
<?= lang('Clientes.saturacion') ?>*
|
||||
</label>
|
||||
<input type="number" id="saturacion" name="saturacion" required placeholder="100.00" maxLength="8"
|
||||
step="0.01" class="form-control" value="<?= old('saturacion', $clienteEntity->saturacion) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="tiendaId" class="form-label">
|
||||
<?= lang('Clientes.tiendaId') ?>
|
||||
</label>
|
||||
<input type="number" id="tiendaId" name="tienda_id" maxLength="10" class="form-control"
|
||||
value="<?= old('tienda_id', $clienteEntity->tienda_id) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="margenPlantillaId" class="form-label">
|
||||
<?= lang('Clientes.margenPlantillaId') ?>
|
||||
</label>
|
||||
<input type="number" id="margenPlantillaId" name="margen_plantilla_id" maxLength="10"
|
||||
class="form-control"
|
||||
value="<?= old('margen_plantilla_id', $clienteEntity->margen_plantilla_id) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="comentariosProduccion" class="form-label">
|
||||
<?= lang('Clientes.comentariosProduccion') ?>
|
||||
</label>
|
||||
<textarea rows="3" id="comentariosProduccion" name="comentarios_produccion" style="height: 10em;"
|
||||
class="form-control"><?= old('comentarios_produccion', $clienteEntity->comentarios_produccion) ?></textarea>
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="psCustomerId" class="form-label">
|
||||
<?= lang('Clientes.psCustomerId') ?>
|
||||
</label>
|
||||
<input type="number" id="psCustomerId" name="ps_customer_id" maxLength="10" class="form-control"
|
||||
value="<?= old('ps_customer_id', $clienteEntity->ps_customer_id) ?>">
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
<div class="mb-3">
|
||||
<div class="form-check">
|
||||
|
||||
<label for="lineasenviofactura" class="form-check-label">
|
||||
<input type="checkbox" id="lineasenviofactura" name="lineasEnvioFactura" value="1"
|
||||
class="form-check-input"<?= $clienteEntity->lineasEnvioFactura == true ? 'checked' : ''; ?>>
|
||||
<?= lang('Clientes.lineasenviofactura') ?>
|
||||
</label>
|
||||
</div><!--//.form-check -->
|
||||
</div><!--//.mb-3 -->
|
||||
|
||||
|
||||
</div><!--//.col -->
|
||||
|
||||
</div><!-- //.row -->
|
||||
|
||||
<?php if ($formAction !== site_url('cliente/add')){ ?>
|
||||
<?= $this->section("additionalInlineJs") ?>
|
||||
|
||||
Reference in New Issue
Block a user