Merge branch 'main' into 'mod/pedidos_user_fechas'

Main

See merge request jjimenez/safekat!689
This commit is contained in:
2025-04-12 08:01:59 +00:00
5 changed files with 38 additions and 34 deletions

View File

@ -591,6 +591,7 @@
<button id="convert2template" type="button" class="btn btn-secondary waves-effect waves-light float-start"><?= lang("ClientePrecios.convertir2plantilla")?></button>
</div>
</div>
<div class="table-responsive">
<table id="tableOfPrecios" class="table table-striped table-hover" style="width: 100%;">
<thead>
@ -614,6 +615,7 @@
</tbody>
</table>
</div>
</div>
@ -637,6 +639,7 @@
<div class="tab-pane fade" id="domicilio-entrega" role="tabpanel">
<?= view("themes/vuexy/form/clientes/cliente/_clienteDireccionesForm") ?>
<div class="table-responsive">
<table id="tableOfDireccionesEnvio" class="table dt-responsive dataTable" style="width: 100%;">
<thead>
<tr>
@ -657,6 +660,7 @@
</tbody>
</table>
</div>
</div>
<div class="tab-pane fade" id="presupuestos" role="tabpanel">
<?= view("themes/vuexy/form/clientes/cliente/_presupuestosClienteItems") ?>

View File

@ -13,7 +13,7 @@
</div><!--//.card-header -->
<form id="clienteForm" data-cliente="<?=$clienteEntity->id?>"
data-url="<?= auth()->user()->inGroup('cliente-admin') || auth()->user()->inGroup('cliente-editor') ?
'/presupuestos/presupuestocliente/edit/' : '/presupuestoadmin/edit//' ?>"
'/presupuestos/presupuestocliente/edit/' : '/presupuestoadmin/edit/' ?>"
method="post" class="card-body" action="<?= $formAction ?>">
<?= csrf_field() ?>
<div class="card-body">

View File

@ -18,7 +18,7 @@ class ClienteFacturacion {
$(this).tab('show');
});
$(document).on('click', '.btn-edit', function (e) {
$('#tableOfFacturasCliente').on('click', '.btn-edit', function (e) {
window.location.href = '/facturas/edit/' + $(this).attr('data-id');
});

View File

@ -18,7 +18,7 @@ class ClientePedidos {
$(this).tab('show');
});
$(document).on('click', '.btn-edit', function (e) {
$('#tableOfPedidosCliente').on('click', '.btn-edit', function (e) {
window.location.href = '/pedidos/edit/' + $(this).attr('data-id');
});

View File

@ -17,8 +17,8 @@ class ClientePresupuestos {
$(this).tab('show');
});
$(document).on('click', '.btn-edit', function (e) {
window.location.href = $('#clienteForm').attr('data-url'); + $(this).attr('data-id');
$('#tableOfPresupuestosCliente').on('click', '.btn-edit', function (e) {
window.location.href = $('#clienteForm').attr('data-url') + $(this).attr('data-id');
});
const lastColNr = $('#tableOfPresupuestosCliente').find("tr:first th").length - 1;