Merge branch 'fix/sk-41' into 'main'

Fix/sk 41

See merge request jjimenez/safekat!688
This commit is contained in:
Alvaro
2025-04-12 06:01:17 +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> <button id="convert2template" type="button" class="btn btn-secondary waves-effect waves-light float-start"><?= lang("ClientePrecios.convertir2plantilla")?></button>
</div> </div>
</div> </div>
<div class="table-responsive">
<table id="tableOfPrecios" class="table table-striped table-hover" style="width: 100%;"> <table id="tableOfPrecios" class="table table-striped table-hover" style="width: 100%;">
<thead> <thead>
@ -614,6 +615,7 @@
</tbody> </tbody>
</table> </table>
</div>
</div> </div>
@ -637,6 +639,7 @@
<div class="tab-pane fade" id="domicilio-entrega" role="tabpanel"> <div class="tab-pane fade" id="domicilio-entrega" role="tabpanel">
<?= view("themes/vuexy/form/clientes/cliente/_clienteDireccionesForm") ?> <?= view("themes/vuexy/form/clientes/cliente/_clienteDireccionesForm") ?>
<div class="table-responsive">
<table id="tableOfDireccionesEnvio" class="table dt-responsive dataTable" style="width: 100%;"> <table id="tableOfDireccionesEnvio" class="table dt-responsive dataTable" style="width: 100%;">
<thead> <thead>
<tr> <tr>
@ -657,6 +660,7 @@
</tbody> </tbody>
</table> </table>
</div> </div>
</div>
<div class="tab-pane fade" id="presupuestos" role="tabpanel"> <div class="tab-pane fade" id="presupuestos" role="tabpanel">
<?= view("themes/vuexy/form/clientes/cliente/_presupuestosClienteItems") ?> <?= view("themes/vuexy/form/clientes/cliente/_presupuestosClienteItems") ?>

View File

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

View File

@ -18,7 +18,7 @@ class ClienteFacturacion {
$(this).tab('show'); $(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'); window.location.href = '/facturas/edit/' + $(this).attr('data-id');
}); });

View File

@ -18,7 +18,7 @@ class ClientePedidos {
$(this).tab('show'); $(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'); window.location.href = '/pedidos/edit/' + $(this).attr('data-id');
}); });

View File

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